Class: LanGrove::FakeLogger

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

Instance Method Summary collapse

Constructor Details

#initialize(parameter = :noisey) ⇒ FakeLogger

Returns a new instance of FakeLogger.



2
3
4
# File 'lib/langrove/ext/fake_logger.rb', line 2

def initialize( parameter = :noisey )
  @parameter = parameter
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

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



5
6
7
# File 'lib/langrove/ext/fake_logger.rb', line 5

def method_missing( symbol, *args, &block )
  puts "#{symbol}: #{args}" unless @parameter == :silent
end