Class: PrettyConsoleOutput::Theme
- Inherits:
-
Object
- Object
- PrettyConsoleOutput::Theme
- Defined in:
- lib/pretty_console_output/theme.rb
Instance Attribute Summary collapse
-
#done_color ⇒ Object
Returns the value of attribute done_color.
-
#error_color ⇒ Object
Returns the value of attribute error_color.
-
#info_color ⇒ Object
Returns the value of attribute info_color.
-
#log_color ⇒ Object
Returns the value of attribute log_color.
-
#tag_bold ⇒ Object
Returns the value of attribute tag_bold.
-
#tag_date_color ⇒ Object
Returns the value of attribute tag_date_color.
-
#tag_text_color ⇒ Object
Returns the value of attribute tag_text_color.
-
#tag_underscore ⇒ Object
Returns the value of attribute tag_underscore.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Theme
constructor
A new instance of Theme.
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(={}) @info_color = .fetch(:info_color) { :light_yellow } @log_color = .fetch(:log_color) { :white } @error_color = .fetch(:error_color) { :light_red } @done_color = .fetch(:done_color) { :light_green } @tag_text_color = .fetch(:tag_text_color) { :light_white } @tag_date_color = .fetch(:tag_date_color) { :light_white } @tag_bold = .fetch(:tag_bold) { true } @tag_underscore = .fetch(:tag_underscore) { true } end |
Instance Attribute Details
#done_color ⇒ Object
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_color ⇒ Object
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_color ⇒ Object
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_color ⇒ Object
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_bold ⇒ Object
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_color ⇒ Object
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_color ⇒ Object
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_underscore ⇒ Object
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 |