Class: Paraspec::LoggerWrapper

Inherits:
Object
  • Object
show all
Defined in:
lib/paraspec/logger.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(logger) ⇒ LoggerWrapper

Returns a new instance of LoggerWrapper.



5
6
7
# File 'lib/paraspec/logger.rb', line 5

def initialize(logger)
  @logger = logger
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(m, *args) ⇒ Object



9
10
11
# File 'lib/paraspec/logger.rb', line 9

def method_missing(m, *args)
  @logger.send(m, *args)
end

Instance Attribute Details

#identObject

Returns the value of attribute ident.



31
32
33
# File 'lib/paraspec/logger.rb', line 31

def ident
  @ident
end