Class Binding
In: ext/nodewrap.c
Parent: Object

if RUBY_VERSION_CODE < 185

  rb_cUnboundMethod = rb_const_get(rb_cObject, rb_intern("UnboundMethod"));

endif

  rb_define_method(rb_cMethod, "origin_class", method_origin_class, 0);
  rb_define_method(rb_cUnboundMethod, "origin_class", method_origin_class, 0);
  rb_define_method(rb_cMethod, "attached_class", method_attached_class, 0);
  rb_define_method(rb_cMethod, "method_id", method_id, 0);
  rb_define_method(rb_cUnboundMethod, "method_id", method_id, 0);
  rb_define_method(rb_cMethod, "method_oid", method_oid, 0);
  rb_define_method(rb_cUnboundMethod, "method_oid", method_oid, 0);
  rb_define_method(rb_cMethod, "body", method_body, 0);
  rb_define_method(rb_cUnboundMethod, "body", method_body, 0);
  rb_define_method(rb_cMethod, "_dump", method_dump, 1);
  rb_define_method(rb_cUnboundMethod, "_dump", method_dump, 1);
  rb_define_singleton_method(rb_cMethod, "_load", method_load, 1);
  rb_define_singleton_method(rb_cUnboundMethod, "_load", method_load, 1);

Methods

body  

Public Instance methods

Given a Binding, returns the Node for that Binding‘s body.

On YARV, this will returning the Binding‘s instruction sequence.

[Validate]