Project

General

Profile

Actions

Feature #578

closed

add method to disassemble Proc objects

Added by rogerdpack (Roger Pack) over 15 years ago. Updated over 11 years ago.

Status:
Closed
Target version:
[ruby-core:18762]

Description

=begin
Currently
RubyVM::InstructionSequence.disassemble
works only for methods.

I wasn't sure how to patch
RubyVM::InstructionSequence.disassemble
to work with proc objects AND methods, so added a new method
RubyVM::InstructionSequence.disassemble_proc
which works for proc objects, in the accompanying patch.
Either way would work.

Hope this can be included before the feature freeze, if possible :)
-=R
=end


Files

add_disassemble_proc.diff (889 Bytes) add_disassemble_proc.diff rogerdpack (Roger Pack), 09/21/2008 03:10 AM
iseq.diff (786 Bytes) iseq.diff rogerdpack (Roger Pack), 01/20/2010 05:14 AM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0