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.



106
107
108
# File 'lib/disposable/twin.rb', line 106

def initialize(dfn)
  @dfn = dfn
end

Instance Method Details

#call(value) ⇒ Object



110
111
112
# File 'lib/disposable/twin.rb', line 110

def call(value)
  @dfn[:nested].new(value)
end