class Contraption::Tag
Public Class Methods
new(text)
click to toggle source
# File lib/contraption/tag.rb, line 3 def initialize text @display_text = text.to_s end
Public Instance Methods
to_s()
click to toggle source
# File lib/contraption/tag.rb, line 7 def to_s @display_text end
to_sym()
click to toggle source
# File lib/contraption/tag.rb, line 16 def to_sym @display_text.to_sym end
to_url()
click to toggle source
# File lib/contraption/tag.rb, line 11 def to_url @display_text.downcase .gsub ' ', '-' end