Returns:
3 4 5 6 7 8 9 10 11 12
# File 'lib/is_same/core_ext/string.rb', line 3 def matching?(object=nil, &block) case object when Class, Numeric, Symbol self == "#{object}" when Regexp !!object.match(self) else super object, &block end end