Project

General

Profile

« Previous | Next » 

Revision 38085

  • iseq.c: add RubyVM::InstructionSequence (ISeq) inspection methods.
  • ISeq#path returns path of this ISeq written.
  • ISeq#absolute_path returns absolute path.
  • ISeq#label returns label (method name and so on).
  • ISeq#base_label returns base label (see Thread::Backtrace::Location).
  • ISeq#first_lineno returns first line number of this ISeq.
  • ISeq.of(obj) returns ISeq object which obj (Proc or Method) is contains.
  • test/ruby/test_iseq.rb: add tests.