class Fuzzy::Pattern
- Fuzzy::Pattern
- Reference
- Object
Defined in:
fuzzy/pattern.crConstructors
Instance Method Summary
-
#+(string : String)
Concatenation
-
#+(other : Pattern)
Concatenation
-
#==(other : self)
Two
Pattern
s are equal if their @patterns match -
#===(string : String)
Case equality
-
#===(pattern : Pattern)
Case equality
-
#===(object)
Case equality
- #=~(string : String)
-
#clone
Returns a copy of
self
with all instance variables cloned. -
#hash(hasher)
See
Object#hash(hasher)
-
#match(string : String)
Matches a regular expression against
String
string Returns anArray
with matching indices if string matched, otherwisenil
. -
#match?(string : String)
Matches a regular expression against
String
string returns true or false. - #pattern : String
-
#to_s(io : IO)
Returns the
Pattern
as aString
Constructor Detail
Instance Method Detail
def match(string : String)
#
Matches a regular expression against String
string
Returns an Array
with matching indices if string matched, otherwise nil
.
def match?(string : String)
#
Matches a regular expression against String
string
returns true or false.