class Linguist::Heuristic

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 disambiguations : Array(Disambiguation) #

[View source]
def disambiguations=(disambiguations : Array(Disambiguation)) #

[View source]
def named_patterns : Hash(String, String | Array(String)) #

[View source]
def named_patterns=(named_patterns : Hash(String, String | Array(String))) #

[View source]
def run(filename, content) #

Run the heuristics on the given filename and content


[View source]