module BetterRailsDebugger::Parser::Ruby::ContextRunnerExtension
Public Instance Methods
current_context()
click to toggle source
# File lib/better_rails_debugger/parser/ruby/basic_extensions/context_definer.rb, line 62 def current_context _context = get 'context' if !_context _context = Hash.new end _context['current'] ||= [] end
pop_context()
click to toggle source
# File lib/better_rails_debugger/parser/ruby/basic_extensions/context_definer.rb, line 81 def pop_context _context = get 'context' if !_context _context = Hash.new set 'context', _context end # get basic information _context['current'] ||= [] _context['current'].pop set 'context', _context end
push_context(value)
click to toggle source
# File lib/better_rails_debugger/parser/ruby/basic_extensions/context_definer.rb, line 70 def push_context(value) _context = get 'context' if !_context _context = Hash.new end _context['current'] ||= [] _context['current'] << value set 'context', _context end