Class: LanGrove::FakeLogger
- Inherits:
-
Object
- Object
- LanGrove::FakeLogger
- Defined in:
- lib/langrove/ext/fake_logger.rb
Instance Method Summary collapse
-
#initialize(parameter = :noisey) ⇒ FakeLogger
constructor
A new instance of FakeLogger.
- #method_missing(symbol, *args, &block) ⇒ Object
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 |