Module: Treebis::Config
Instance Attribute Summary collapse
-
#default_prefix ⇒ Object
Returns the value of attribute default_prefix.
Instance Method Summary collapse
- #color! ⇒ Object
- #color? ⇒ Boolean
- #default_out_stream ⇒ Object
- #new_default_file_utils_proxy ⇒ Object
- #no_color! ⇒ Object
Instance Attribute Details
#default_prefix ⇒ Object
Returns the value of attribute default_prefix.
124 125 126 |
# File 'lib/treebis.rb', line 124 def default_prefix @default_prefix end |
Instance Method Details
#color! ⇒ Object
116 |
# File 'lib/treebis.rb', line 116 def color!; @color = true end |
#color? ⇒ Boolean
114 |
# File 'lib/treebis.rb', line 114 def color?; @color end |
#default_out_stream ⇒ Object
118 119 120 121 |
# File 'lib/treebis.rb', line 118 def default_out_stream proc{ $stderr } # for capture_3 to work this has # to act like a referece to this global variable end |
#new_default_file_utils_proxy ⇒ Object
126 127 128 129 130 131 |
# File 'lib/treebis.rb', line 126 def new_default_file_utils_proxy FileUtilsProxy.new do |fu| fu.prefix = default_prefix fu.ui = default_out_stream end end |
#no_color! ⇒ Object
115 |
# File 'lib/treebis.rb', line 115 def no_color!; @color = false end |