class ContentTagHelper::Tag::CSS

Public Class Methods

new(css) click to toggle source
# File lib/ecrire/app/helpers/content_tag_helper.rb, line 72
def initialize(css)
  if css.is_a? String
    @internals = css.split(' ')
  else
    @internals = css.to_a
  end
end

Public Instance Methods

<<(name) click to toggle source
# File lib/ecrire/app/helpers/content_tag_helper.rb, line 88
def <<(name)
  @internals << name
  nil
end
empty?() click to toggle source
# File lib/ecrire/app/helpers/content_tag_helper.rb, line 84
def empty?
  @internals.empty?
end
to_s() click to toggle source
# File lib/ecrire/app/helpers/content_tag_helper.rb, line 80
def to_s
  @internals.uniq.join(' ').html_safe
end