is_same 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/is_same/core_ext.rb +11 -3
- metadata +1 -1
data/lib/is_same/core_ext.rb
CHANGED
@@ -106,11 +106,19 @@ class Array
|
|
106
106
|
|
107
107
|
end
|
108
108
|
|
109
|
+
|
110
|
+
# #matching? and #matching support
|
109
111
|
class BasicObject
|
110
|
-
|
112
|
+
def matching? *args
|
113
|
+
is_same? *args
|
114
|
+
end
|
111
115
|
end
|
112
116
|
|
113
117
|
class Array
|
114
|
-
|
115
|
-
|
118
|
+
def matching? *args
|
119
|
+
include_same? *args
|
120
|
+
end
|
121
|
+
def matching *args
|
122
|
+
including_same *args
|
123
|
+
end
|
116
124
|
end
|