Class: RspecLogFormatter::ERBContext
- Inherits:
-
Object
- Object
- RspecLogFormatter::ERBContext
- Includes:
- Chartkick::Helper
- Defined in:
- lib/rspec_log_formatter/performance_analyzer.rb
Instance Method Summary collapse
- #get_binding ⇒ Object
-
#initialize(hash) ⇒ ERBContext
constructor
A new instance of ERBContext.
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_binding ⇒ Object
12 13 14 |
# File 'lib/rspec_log_formatter/performance_analyzer.rb', line 12 def get_binding binding end |