Module: Ricecream::Config
- Included in:
- Ricecream
- Defined in:
- lib/ricecream/config.rb
Instance Method Summary collapse
- #arg_to_s(arg) ⇒ Object
- #colorize=(value) ⇒ Object
- #disable ⇒ Object
- #enable ⇒ Object
- #include_context=(value) ⇒ Object
- #output(str) ⇒ Object
- #output=(value) ⇒ Object
- #prefix(location) ⇒ Object
- #prefix=(value) ⇒ Object
Instance Method Details
#arg_to_s(arg) ⇒ Object
35 36 37 |
# File 'lib/ricecream/config.rb', line 35 def arg_to_s(arg) arg.inspect end |
#colorize=(value) ⇒ Object
43 44 45 |
# File 'lib/ricecream/config.rb', line 43 def colorize=(value) @colorize = value end |
#disable ⇒ Object
15 16 17 |
# File 'lib/ricecream/config.rb', line 15 def disable @enable = false end |
#enable ⇒ Object
11 12 13 |
# File 'lib/ricecream/config.rb', line 11 def enable @enable = true end |
#include_context=(value) ⇒ Object
39 40 41 |
# File 'lib/ricecream/config.rb', line 39 def include_context=(value) @include_context = value end |
#output(str) ⇒ Object
27 28 29 |
# File 'lib/ricecream/config.rb', line 27 def output(str) @output.puts str end |
#output=(value) ⇒ Object
31 32 33 |
# File 'lib/ricecream/config.rb', line 31 def output=(value) @output = value end |
#prefix(location) ⇒ Object
19 20 21 |
# File 'lib/ricecream/config.rb', line 19 def prefix(location) @prefix end |
#prefix=(value) ⇒ Object
23 24 25 |
# File 'lib/ricecream/config.rb', line 23 def prefix=(value) @prefix = value end |