Class: Runger::Config::BlockCallback

Inherits:
Object
  • Object
show all
Defined in:
lib/runger/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(block) ⇒ BlockCallback

Returns a new instance of BlockCallback.



61
62
63
# File 'lib/runger/config.rb', line 61

def initialize(block)
  @block = block
end

Instance Attribute Details

#blockObject (readonly)

Returns the value of attribute block.



59
60
61
# File 'lib/runger/config.rb', line 59

def block
  @block
end

Instance Method Details

#apply_to(config) ⇒ Object



65
66
67
# File 'lib/runger/config.rb', line 65

def apply_to(config)
  config.instance_exec(&block)
end