class Linguist::LangRule

Included Modules

Defined in:

heuristics.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

[View source]

Instance Method Detail

def and : Array(LangRule) | Nil #

[View source]
def and=(and : Array(LangRule) | Nil) #

[View source]
def language : String | Array(String) | Nil #

[View source]
def language=(language : String | Array(String) | Nil) #

[View source]
def match(content, named_patterns) #

ameba:disable Metrics/CyclomaticComplexity


[View source]
def named_pattern : String | Nil #

[View source]
def named_pattern=(named_pattern : String | Nil) #

[View source]
def negative_pattern : String | Array(String) | Nil #

[View source]
def negative_pattern=(negative_pattern : String | Array(String) | Nil) #

[View source]
def pattern : String | Array(String) | Nil #

[View source]
def pattern=(pattern : String | Array(String) | Nil) #

[View source]