class Tagline::Tagger
Attributes
filename[R]
line_manager[R]
tag_storer[R]
Public Class Methods
new(filename)
click to toggle source
# File lib/tagline/tagger.rb, line 10 def initialize(filename) @filename = filename @line_manager = LineManager.new(filename) @tag_storer = TagStorer.new(filename, lines) retrieve_stored_tags end
Public Instance Methods
tag(chord)
click to toggle source
# File lib/tagline/tagger.rb, line 23 def tag(chord) tag = Tagline.tags.invert[chord] return unless tag toggle(tag) next_line if Tagline.next_on_tag print_screen end