method.clone â new_method
Instance Public methods
Returns a clone of this method.
1 2 3 4 5 6 7 8 9 | class A def foo return "bar" end end m = A . new .method( :foo ) m.call # => "bar" n = m.clone.call # => "bar" |
Returns a clone of this method.
1 2 3 4 5 6 7 8 9 | class A def foo return "bar" end end m = A . new .method( :foo ) m.call # => "bar" n = m.clone.call # => "bar" |
Designed by : w10schools
service@w10schools.com
Please login to continue.