method_info 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/method_info/ancestor_method_structure.rb +3 -0
- metadata +1 -1
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.3
|
|
@@ -102,6 +102,9 @@ module MethodInfo
|
|
|
102
102
|
|
|
103
103
|
# Returns the class or module where method is defined
|
|
104
104
|
def self.method_owner(object, method)
|
|
105
|
+
# Printing this warning is not spec'ed: it is only here temporarily until the 1.8.6
|
|
106
|
+
# workaround is implemented
|
|
107
|
+
STDERR.puts "Ruby >= 1.8.7 required" unless VERSION >= '1.8.7'
|
|
105
108
|
object.method(method).owner
|
|
106
109
|
end
|
|
107
110
|
|