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.
23 24 25 |
# File 'lib/dragonfly/configurable.rb', line 23 def initialize(blk) @blk = blk end |
Instance Method Details
#call ⇒ Object
27 28 29 |
# File 'lib/dragonfly/configurable.rb', line 27 def call @blk.call end |