Class: Disposable::Twin::Twinner
- Inherits:
-
Object
- Object
- Disposable::Twin::Twinner
- Defined in:
- lib/disposable/twin.rb
Instance Method Summary collapse
- #call(value) ⇒ Object
-
#initialize(dfn) ⇒ Twinner
constructor
A new instance of Twinner.
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 |