Class: LanGrove::FakeRoot

Inherits:
Object
  • Object
show all
Defined in:
lib/langrove/ext/fake_root.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

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



32
33
34
35
36
# File 'lib/langrove/ext/fake_root.rb', line 32

def method_missing( symbol, *args, &block )
  
  logger.info "call to ROOT.#{symbol}( #{args})" unless logger.nil?
  
end

Instance Attribute Details

#configObject

Returns the value of attribute config.



10
11
12
# File 'lib/langrove/ext/fake_root.rb', line 10

def config
  @config
end

#loggerObject

for easy spec setup



9
10
11
# File 'lib/langrove/ext/fake_root.rb', line 9

def logger
  @logger
end

#metrixObject

Returns the value of attribute metrix.



11
12
13
# File 'lib/langrove/ext/fake_root.rb', line 11

def metrix
  @metrix
end