Class: Disposable::Twin::Twinner

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

Instance Method Summary collapse

Constructor Details

#initialize(dfn) ⇒ Twinner

Returns a new instance of Twinner.



134
135
136
# File 'lib/disposable/twin.rb', line 134

def initialize(dfn)
  @dfn = dfn
end

Instance Method Details

#call(value) ⇒ Object



138
139
140
# File 'lib/disposable/twin.rb', line 138

def call(value)
  @dfn.twin_class.new(value)
end