Class: BetterRailsDebugger::Parser::Ruby::ContextRunner
- Inherits:
-
Object
- Object
- BetterRailsDebugger::Parser::Ruby::ContextRunner
- Includes:
- ContextRunnerExtension
- Defined in:
- lib/better_rails_debugger/parser/ruby/context_runner.rb
Instance Attribute Summary collapse
-
#node ⇒ Object
Returns the value of attribute node.
-
#processor ⇒ Object
Returns the value of attribute processor.
Instance Method Summary collapse
- #get(key) ⇒ Object
-
#initialize(_processor) ⇒ ContextRunner
constructor
A new instance of ContextRunner.
- #set(key, value) ⇒ Object
Methods included from ContextRunnerExtension
#current_context, #pop_context, #push_context
Constructor Details
#initialize(_processor) ⇒ ContextRunner
Returns a new instance of ContextRunner.
4 5 6 |
# File 'lib/better_rails_debugger/parser/ruby/context_runner.rb', line 4 def initialize(_processor) @processor = _processor end |
Instance Attribute Details
#node ⇒ Object
Returns the value of attribute node.
3 4 5 |
# File 'lib/better_rails_debugger/parser/ruby/context_runner.rb', line 3 def node @node end |
#processor ⇒ Object
Returns the value of attribute processor.
3 4 5 |
# File 'lib/better_rails_debugger/parser/ruby/context_runner.rb', line 3 def processor @processor end |
Instance Method Details
#get(key) ⇒ Object
12 13 14 |
# File 'lib/better_rails_debugger/parser/ruby/context_runner.rb', line 12 def get(key) @processor.information[key] end |
#set(key, value) ⇒ Object
8 9 10 |
# File 'lib/better_rails_debugger/parser/ruby/context_runner.rb', line 8 def set(key, value) @processor.information[key] = value end |