Class: Regexp

Inherits:
Object
  • Object
show all
Defined in:
lib/react_native_util/core_ext/regexp.rb

Instance Method Summary collapse

Instance Method Details

#match?(str) ⇒ Boolean

For portability to system Ruby TODO: Correct this. The condition above is meaningless. We’re always overriding this method, even if it already exists. This is fine for now, but should be improved.

Returns:

  • (Boolean)


7
8
9
# File 'lib/react_native_util/core_ext/regexp.rb', line 7

def match?(str)
  !match(str).nil?
end