method
disassemble
v1_9_1_378 -
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) { extern NODE *rb_method_body(VALUE body); NODE *node; VALUE ret = Qnil; rb_secure(1); if ((node = rb_method_body(body)) != 0) { if (nd_type(node) == RUBY_VM_METHOD_NODE) { VALUE iseqval = (VALUE)node->nd_body; ret = rb_iseq_disasm(iseqval); } } return ret; }