Class: Dragonfly::Configurable::DeferredBlock
- Defined in:
- lib/dragonfly/configurable.rb
Overview
Inheriting from Proc causes errors in some versions of Ruby
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(blk) ⇒ DeferredBlock
constructor
A new instance of DeferredBlock.
Constructor Details
#initialize(blk) ⇒ DeferredBlock
Returns a new instance of DeferredBlock.
16 17 18 |
# File 'lib/dragonfly/configurable.rb', line 16 def initialize(blk) @blk = blk end |
Instance Method Details
#call ⇒ Object
20 21 22 |
# File 'lib/dragonfly/configurable.rb', line 20 def call @blk.call end |