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.



23
24
25
# File 'lib/dragonfly/configurable.rb', line 23

def initialize(blk)
  @blk = blk
end

Instance Method Details

#callObject



27
28
29
# File 'lib/dragonfly/configurable.rb', line 27

def call
  @blk.call
end