Class: RspecLogFormatter::ERBContext

Inherits:
Object
  • Object
show all
Includes:
Chartkick::Helper
Defined in:
lib/rspec_log_formatter/performance_analyzer.rb

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ ERBContext

Returns a new instance of ERBContext.



7
8
9
10
11
# File 'lib/rspec_log_formatter/performance_analyzer.rb', line 7

def initialize(hash)
  hash.each_pair do |key, value|
    instance_variable_set('@' + key.to_s, value)
  end
end

Instance Method Details

#get_bindingObject



12
13
14
# File 'lib/rspec_log_formatter/performance_analyzer.rb', line 12

def get_binding
  binding
end