Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
* proc.c : Add few documentation on Method#clone
  • Loading branch information
robin850 committed Aug 7, 2012
commit 16b6bad2f73bc35a01e4dfc9d86047b5ff52203b
15 changes: 14 additions & 1 deletion proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1446,7 +1446,20 @@ rb_obj_define_method(int argc, VALUE *argv, VALUE obj)


/*
* MISSING: documentation
* call-seq:
* method.clone -> new_method
*
* Just return a method object which is a clone of the receiver.
*
* class A
* def foo
* return "bar"
* end
* end
*
* m = A.new.method(:foo)
* m.call # => "bar"
* n = m.clone.call # => "bar"
*/

static VALUE
Expand Down