Class: Pure::Delegate
- Inherits:
-
Object
- Object
- Pure::Delegate
- Defined in:
- lib/pure/delegate.rb
Instance Method Summary collapse
-
#initialize(driver) ⇒ Delegate
constructor
A new instance of Delegate.
Constructor Details
#initialize(driver) ⇒ Delegate
Returns a new instance of Delegate.
4 5 6 7 8 9 10 11 12 |
# File 'lib/pure/delegate.rb', line 4 def initialize(driver) (class << self ; self ; end).class_eval do driver.each_function_name { |name| define_method name do || driver.compute(name) end } end end |