Class: Dragonfly::Configurable::DeferredBlock

Inherits:
Object
  • Object
show all
Defined in:
lib/dragonfly/configurable.rb

Overview

Inheriting from Proc causes errors in some versions of Ruby

Instance Method Summary collapse

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

#callObject


20
21
22
# File 'lib/dragonfly/configurable.rb', line 20

def call
  @blk.call
end