Class: Disposable::Twin::Twinner

Inherits:
Object
  • Object
show all
Defined in:
lib/disposable/twin.rb

Overview

TODO: make this a function so it’s faster at run-time.

Instance Method Summary collapse

Constructor Details

#initialize(twin, dfn) ⇒ Twinner

Returns a new instance of Twinner.



120
121
122
123
# File 'lib/disposable/twin.rb', line 120

def initialize(twin, dfn)
  @twin = twin
  @dfn  = dfn
end

Instance Method Details

#call(*args) ⇒ Object



125
126
127
# File 'lib/disposable/twin.rb', line 125

def call(*args)
  @twin.send(:build_twin, @dfn, *args)
end