Class: Dragonfly::Configurable::DeferredBlock
- Inherits:
-
Object
- Object
- Dragonfly::Configurable::DeferredBlock
- Defined in:
- lib/dragonfly/configurable.rb
Overview
Inheriting from Proc causes errors in some versions of Ruby
Instance Method Summary (collapse)
- - (Object) call
-
- (DeferredBlock) initialize(blk)
constructor
A new instance of DeferredBlock.
Constructor Details
- (DeferredBlock) initialize(blk)
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
- (Object) call
20 21 22 |
# File 'lib/dragonfly/configurable.rb', line 20 def call @blk.call end |