Module: Treebis::Config

Extended by:
Config
Included in:
Config
Defined in:
lib/treebis.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#default_prefixObject

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

Returns:

  • (Boolean)


114
# File 'lib/treebis.rb', line 114

def color?;    @color         end

#default_out_streamObject



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_proxyObject



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