Class: Runger::Config::BlockCallback
- Inherits:
-
Object
- Object
- Runger::Config::BlockCallback
- Defined in:
- lib/runger/config.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
Returns the value of attribute block.
Instance Method Summary collapse
- #apply_to(config) ⇒ Object
-
#initialize(block) ⇒ BlockCallback
constructor
A new instance of BlockCallback.
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
#block ⇒ Object (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 |