Class: Divergence::Helpers
- Inherits:
-
Object
- Object
- Divergence::Helpers
- Defined in:
- lib/divergence/helpers.rb
Instance Method Summary collapse
- #execute(block, opts = {}) ⇒ Object
-
#initialize(config) ⇒ Helpers
constructor
A new instance of Helpers.
Constructor Details
#initialize(config) ⇒ Helpers
Returns a new instance of Helpers.
3 4 5 |
# File 'lib/divergence/helpers.rb', line 3 def initialize(config) @config = config end |
Instance Method Details
#execute(block, opts = {}) ⇒ Object
7 8 9 |
# File 'lib/divergence/helpers.rb', line 7 def execute(block, opts={}) self.instance_exec opts, &block end |