Class: Olelo::PatchParser::Adapter

Inherits:
Object
  • Object
show all
Defined in:
lib/olelo/patch.rb

Instance Method Summary collapse

Constructor Details

#initialize(adapter) ⇒ Adapter

Returns a new instance of Adapter.



62
63
64
# File 'lib/olelo/patch.rb', line 62

def initialize(adapter)
  @adapter = adapter
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args) ⇒ Object



66
67
68
# File 'lib/olelo/patch.rb', line 66

def method_missing(name, *args)
  @adapter.each {|a| a.send(name, *args) }
end