is_same 0.1.1 → 0.1.2
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/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
|