method
disassemble
v1_9_2_180 -
Show latest stable
-
0 notes -
Class: InstructionSequence
- 1_8_6_287
- 1_8_7_72
- 1_8_7_330
- 1_9_1_378 (0)
- 1_9_2_180 (0)
- 1_9_3_125 (0)
- 1_9_3_392 (0)
- 2_1_10 (38)
- 2_2_9 (0)
- 2_4_6 (0)
- 2_5_5 (0)
- 2_6_3 (0)
- What's this?
disassemble(p1)
public
Hide source
static VALUE iseq_s_disasm(VALUE klass, VALUE body) { VALUE ret = Qnil; rb_iseq_t *iseq; extern rb_iseq_t *rb_method_get_iseq(VALUE body); rb_secure(1); if (rb_obj_is_proc(body)) { rb_proc_t *proc; VALUE iseqval; GetProcPtr(body, proc); iseqval = proc->block.iseq->self; if (RUBY_VM_NORMAL_ISEQ_P(iseqval)) { ret = rb_iseq_disasm(iseqval); } } else if ((iseq = rb_method_get_iseq(body)) != 0) { ret = rb_iseq_disasm(iseq->self); } return ret; }