Class: PrettyConsoleOutput::Theme

Inherits:
Object
  • Object
show all
Defined in:
lib/pretty_console_output/theme.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Theme

Returns a new instance of Theme.



13
14
15
16
17
18
19
20
21
22
# File 'lib/pretty_console_output/theme.rb', line 13

def initialize(options={})
  @info_color     = options.fetch(:info_color)     { :light_yellow }
  @log_color      = options.fetch(:log_color)      { :white }
  @error_color    = options.fetch(:error_color)    { :light_red }
  @done_color     = options.fetch(:done_color)     { :light_green }
  @tag_text_color = options.fetch(:tag_text_color) { :light_white }
  @tag_date_color = options.fetch(:tag_date_color) { :light_white }
  @tag_bold       = options.fetch(:tag_bold)       { true }
  @tag_underscore = options.fetch(:tag_underscore) { true }
end

Instance Attribute Details

#done_colorObject

Returns the value of attribute done_color.



7
8
9
# File 'lib/pretty_console_output/theme.rb', line 7

def done_color
  @done_color
end

#error_colorObject

Returns the value of attribute error_color.



6
7
8
# File 'lib/pretty_console_output/theme.rb', line 6

def error_color
  @error_color
end

#info_colorObject

Returns the value of attribute info_color.



4
5
6
# File 'lib/pretty_console_output/theme.rb', line 4

def info_color
  @info_color
end

#log_colorObject

Returns the value of attribute log_color.



5
6
7
# File 'lib/pretty_console_output/theme.rb', line 5

def log_color
  @log_color
end

#tag_boldObject

Returns the value of attribute tag_bold.



10
11
12
# File 'lib/pretty_console_output/theme.rb', line 10

def tag_bold
  @tag_bold
end

#tag_date_colorObject

Returns the value of attribute tag_date_color.



9
10
11
# File 'lib/pretty_console_output/theme.rb', line 9

def tag_date_color
  @tag_date_color
end

#tag_text_colorObject

Returns the value of attribute tag_text_color.



8
9
10
# File 'lib/pretty_console_output/theme.rb', line 8

def tag_text_color
  @tag_text_color
end

#tag_underscoreObject

Returns the value of attribute tag_underscore.



11
12
13
# File 'lib/pretty_console_output/theme.rb', line 11

def tag_underscore
  @tag_underscore
end