class Fingers::Hinter
- Fingers::Hinter
- Reference
- Object
Defined in:
fingers/hinter.crConstructors
Instance Method Summary
- #build_target(text, hint, offset)
- #capture_indices : Array(Int32)
- #captured_text_for_match(match)
- #count_matches
- #count_unique_matches
- #find_capture_offset(match : Regex::MatchData) : Tuple(Int32, Int32) | Nil
- #hint_for_text(text)
- #hints : Array(String)
- #lookup(hint) : Target | Nil
- #n_matches : Int32
- #pattern : Regex
- #pop_hint! : String
- #process_line(line, line_index, ending)
- #regenerate_hints!
- #relative_capture_offset_for_match(match, captured_text)
- #replace(match, line_index)
- #run
Constructor Detail
def self.new(input : Array(String), width : Int32, state : Fingers::State, output : Printer, patterns : Array(String) = Fingers.config.patterns, alphabet : Array(String) = Fingers.config.alphabet, huffman : Huffman = Huffman.new, formatter : Fingers::Formatter = ::Fingers::MatchFormatter.new, reuse_hints : Bool = false)
#