class Rouge::Formatters::Terminal256
def initialize(theme = Themes::ThankfulEyes.new)
-
theme
(Hash, Rouge::Theme
) --
def initialize(theme = Themes::ThankfulEyes.new) if theme.is_a?(Rouge::Theme) @theme = theme elsif theme.is_a?(Hash) @theme = theme[:theme] || Themes::ThankfulEyes.new else raise ArgumentError, "invalid theme: #{theme.inspect}" end end