Class: Colorit::Config
- Inherits:
-
Object
- Object
- Colorit::Config
- Defined in:
- lib/colorit/config.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#colors ⇒ Object
readonly
Returns the value of attribute colors.
Instance Method Summary collapse
- #debug=(debug) ⇒ Object
- #debug? ⇒ Boolean
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
16 17 18 19 |
# File 'lib/colorit/config.rb', line 16 def initialize @debug = false @colors = {} end |
Instance Attribute Details
#colors ⇒ Object (readonly)
Returns the value of attribute colors.
3 4 5 |
# File 'lib/colorit/config.rb', line 3 def colors @colors end |
Instance Method Details
#debug=(debug) ⇒ Object
21 22 23 |
# File 'lib/colorit/config.rb', line 21 def debug=(debug) @debug = (debug == true) end |
#debug? ⇒ Boolean
25 26 27 |
# File 'lib/colorit/config.rb', line 25 def debug? @debug end |