struct Tartrazine::Rule

Defined in:

rules.cr

Constructors

Instance Method Summary

Instance methods inherited from struct Tartrazine::BaseRule

add_actions(node : XML::Node) add_actions, match(text : Bytes, pos : Int32, tokenizer : Tokenizer) : Tuple(Bool, Int32, Array(Token)) match

Constructor methods inherited from struct Tartrazine::BaseRule

new(node : XML::Node) new

Constructor Detail

def self.new(node : XML::Node, multiline, dotall, ignorecase) #

[View source]
def self.new(node : XML::Node) #

[View source]

Instance Method Detail

def match(text : Bytes, pos, tokenizer) : Tuple(Bool, Int32, Array(Token)) #

[View source]
def pattern : Regex #

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

[View source]