Class: AwesomePrint::Inspector

Inherits:
Object
  • Object
show all
Defined in:
lib/awesome_print_colors/awesome_print.rb

Instance Method Summary collapse

Instance Method Details

#merge_options!(options) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
# File 'lib/awesome_print_colors/awesome_print.rb', line 5

def merge_options!(options)
  merge_options_without_themes!
  
  theme = options[:theme]
  unless AwesomePrintColors.themes.include? theme
    return false
  end

  colors = AwesomePrintColors.themes[theme]
  @options[:color].merge! colors
end