class Tagline::TagStorer
Attributes
filename[R]
lines[R]
Public Class Methods
new(filename, lines)
click to toggle source
# File lib/tagline/tag_storer.rb, line 3 def initialize(filename, lines) @filename, @lines = filename, lines end
Public Instance Methods
Private Instance Methods
file_ext()
click to toggle source
# File lib/tagline/tag_storer.rb, line 31 def file_ext @file_ext ||= File.extname(filename) end
file_without_ext()
click to toggle source
# File lib/tagline/tag_storer.rb, line 35 def file_without_ext @file_without_ext ||= filename.chomp(file_ext) end
tag_filename(tag)
click to toggle source
# File lib/tagline/tag_storer.rb, line 39 def tag_filename(tag) "#{file_without_ext}_#{tag}#{file_ext}" end
tag_names()
click to toggle source
# File lib/tagline/tag_storer.rb, line 27 def tag_names @tag_names ||= Tagline.tags.keys end