28
29
30
31
32
33
34
35
36
37
38
39
|
# File 'lib/is_same/core_ext.rb', line 28
def matching? object=nil, &block
case object
when String
object == self.to_s
when Symbol
object == self.to_s.to_sym
when Regexp
!!object.match(self.to_s)
else
super
end
end
|