Top Level Namespace
Defined Under Namespace
Classes: ThreadFrameError
Instance Method Summary (collapse)
-
- (Object) find_line(line)
:nodoc.
-
- (Object) show_type
:nodoc:.
Instance Method Details
- (Object) find_line(line)
:nodoc
168 169 170 171 172 |
# File 'lib/iseq_extra.rb', line 168 def find_line(line) # :nodoc tf = RubyVM::ThreadFrame.current puts "find_line has lines: #{tf.iseq.lines}" p tf.iseq.find_iseq_with_line(line) end |
- (Object) show_type
:nodoc:
152 153 154 155 156 157 158 159 160 161 162 163 |
# File 'lib/iseq_extra.rb', line 152 def show_type # :nodoc: tf = RubyVM::ThreadFrame.current while tf do is = tf.iseq if is ist = tf.iseq.type isn = RubyVM::InstructionSequence::TYPE2STR[ist] puts "instruction sequence #{is.inspect} has type #{isn} (#{ist})." end tf = tf.prev end end |