Class: Divergence::Helpers

Inherits:
Object
  • Object
show all
Defined in:
lib/divergence/helpers.rb

Instance Method Summary collapse

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