class Fuzzy::Pattern

Defined in:

fuzzy/pattern.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pattern : String) #

[View source]

Instance Method Detail

def +(string : String) #

Concatenation


[View source]
def +(other : Pattern) #

Concatenation


[View source]
def ==(other : self) #

Two Patterns are equal if their @patterns match


[View source]
def ===(string : String) #

Case equality


[View source]
def ===(pattern : Pattern) #

Case equality


[View source]
def ===(object) #

Case equality


[View source]
def =~(string : String) #

[View source]
def clone #

Returns a copy of self with all instance variables cloned.


[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


[View source]
def match(string : String) #

Matches a regular expression against String string Returns an Array with matching indices if string matched, otherwise nil.


[View source]
def match?(string : String) #

Matches a regular expression against String string returns true or false.


[View source]
def pattern : String #

[View source]
def to_s(io : IO) #

Returns the Pattern as a String


[View source]