Class: RubyVM::InstructionSequence
Instance Method Summary collapse
- #first_line ⇒ Object
- #last_line ⇒ Object
- #parameters_symbols ⇒ Object
- #traceable_lines_norec(lines) ⇒ Object
- #traceable_lines_rec(lines) ⇒ Object
- #type ⇒ Object
Instance Method Details
#first_line ⇒ Object
82 83 84 |
# File 'lib/debug/session.rb', line 82 def first_line self.to_a[4][:code_location][0] end |
#last_line ⇒ Object
78 79 80 |
# File 'lib/debug/session.rb', line 78 def last_line self.to_a[4][:code_location][2] end |
#parameters_symbols ⇒ Object
71 72 73 74 75 76 |
# File 'lib/debug/session.rb', line 71 def parameters_symbols ary = self.to_a argc = ary[4][:arg_size] locals = ary.to_a[10] locals[0...argc] end |
#traceable_lines_norec(lines) ⇒ Object
47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/debug/session.rb', line 47 def traceable_lines_norec lines code = self.to_a[13] line = 0 code.each{|e| case e when Integer line = e when Symbol if /\ARUBY_EVENT_/ =~ e.to_s lines[line] = [e, *lines[line]] end end } end |
#traceable_lines_rec(lines) ⇒ Object
62 63 64 65 |
# File 'lib/debug/session.rb', line 62 def traceable_lines_rec lines self.each_child{|ci| ci.traceable_lines_rec(lines)} traceable_lines_norec lines end |
#type ⇒ Object
67 68 69 |
# File 'lib/debug/session.rb', line 67 def type self.to_a[9] end |