Method: Gitnesse::Config#method_missing

Defined in:
lib/gitnesse/config.rb

#method_missing(method, *args, &block) ⇒ Object

Method_missing used to make it easier to access ConfigStruct values

Example:

@config = Gitnesse::Config.instance
@config.annotate_results #=> false


60
61
62
63
64
65
66
# File 'lib/gitnesse/config.rb', line 60

def method_missing(method, *args, &block)
  if @@config.respond_to?(method)
    @@config.send(method, *args, &block)
  else
    raise NoMethodError
  end
end