Wikicr::Page::Index
Inherits YAML::Serializable / Lockable / Reference / Object
Constructors
new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
Sourcenew(file : String)
Sourcenew(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
SourceClass methods
read(file : String)
Sourceurl_closeness(from : String, to : String)
Computes the amount of common chars at the beginning of each string
Instance methods
entries
Sourceentries=(entries : Hash(String, Entry))
Sourcefile
Sourcefile=(file : String)
Sourcefind(text : String, context : Page) : Tuple(String, String)
Find a matching text into the Index. If no matching content, return a default value.