diff --git a/proc.c b/proc.c index 9637ac5b4a..4c983244ee 100644 --- a/proc.c +++ b/proc.c @@ -1853,16 +1853,14 @@ rb_mod_public_instance_method(VALUE mod, VALUE vid) * Defines an instance method in the receiver. The _method_ * parameter can be a +Proc+, a +Method+ or an +UnboundMethod+ object. * If a block is specified, it is used as the method body. This block - * is evaluated using instance_eval, a point that is - * tricky to demonstrate because define_method is private. - * (This is why we resort to the +send+ hack in this example.) + * is evaluated using instance_eval. * * class A * def fred * puts "In Fred" * end * def create_method(name, &block) - * self.class.send(:define_method, name, &block) + * self.class.define_method(name, &block) * end * define_method(:wilma) { puts "Charge it!" } * end