class Fuzzy::Pattern
- Fuzzy::Pattern
- Reference
- Object
Defined in:
fuzzy/pattern.crConstructors
Instance Method Summary
-
#+(string : String)
Concatenation
-
#+(other : Pattern)
Concatenation
-
#==(other : self)
Two
Patterns are equal if their @patterns match -
#===(string : String)
Case equality
-
#===(pattern : Pattern)
Case equality
-
#===(object)
Case equality
- #=~(string : String)
-
#clone
Returns a copy of
selfwith all instance variables cloned. -
#hash(hasher)
See
Object#hash(hasher) -
#match(string : String)
Matches a regular expression against
Stringstring Returns anArraywith matching indices if string matched, otherwisenil. -
#match?(string : String)
Matches a regular expression against
Stringstring returns true or false. - #pattern : String
-
#to_s(io : IO)
Returns the
Patternas 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.