Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #1233 from semmons99/patch-method#name-for-19

patch Method#name for 1.9
  • Loading branch information...
commit 433dc0a8a736c70017258134466c3114084ccd5f 2 parents 2b3b4de + a3b44b5
@steveklabnik steveklabnik authored
View
1  kernel/common/load_order20.txt
@@ -77,6 +77,7 @@ marshal19.rbc
math.rbc
math19.rbc
method.rbc
+method19.rbc
method_table.rbc
native_method.rbc
nil.rbc
View
4 kernel/common/method.rb
@@ -27,10 +27,6 @@ def initialize(receiver, defined_in, executable, name)
attr_reader :defined_in
attr_reader :executable
- def name
- @name.to_s
- end
-
##
# Method objects are equal if they have the same body and are bound to the
# same object.
View
9 kernel/common/method18.rb
@@ -1,7 +1,14 @@
+class Method
+ def name
+ @name.to_s
+ end
+end
+
class UnboundMethod
def name
@name.to_s
end
-end
+end
+
View
9 kernel/common/method19.rb
@@ -1,7 +1,14 @@
+class Method
+ def name
+ @name
+ end
+end
+
class UnboundMethod
def name
@name
end
-end
+end
+
View
2  spec/tags/19/ruby/core/method/name_tags.txt
@@ -1,2 +0,0 @@
-fails:Method#name returns the name of the method
-fails:Method#name returns the name even when aliased
Please sign in to comment.
Something went wrong with that request. Please try again.