class Tagline::Line
Attributes
text[R]
Public Class Methods
new(text)
click to toggle source
# File lib/tagline/line.rb, line 7 def initialize(text) @text = text @tags = Hash.new(false) end
Public Instance Methods
toggle(tag)
click to toggle source
# File lib/tagline/line.rb, line 12 def toggle(tag) self[tag] = !self[tag] end