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.
126 127 128 |
# File 'lib/disposable/twin.rb', line 126 def initialize(dfn) @dfn = dfn end |
Instance Method Details
#call(value) ⇒ Object
130 131 132 |
# File 'lib/disposable/twin.rb', line 130 def call(value) @dfn.twin_class.new(value) end |