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

- (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