class Symbol

Public Instance Methods

html(body = '', attrs = {}) click to toggle source
# File lib/engine2/core.rb, line 153
def html body = '', attrs = {}
    element = self.to_s
    attrs = attrs.map{|k, v| "#{k}=\"#{v}\""}.join(" ")
    "<#{element} #{attrs}>#{body}</#{element}>"
end
icon() click to toggle source
# File lib/engine2/core.rb, line 136
def icon
    s = self
    if s[0, 3] == 'fa_'
        "<i class='fa fa-#{s[3 .. -1]}'></i>"
    else
        "<span class='glyphicon glyphicon-#{s}'></span>"
    end
end
loc() click to toggle source
# File lib/engine2/core.rb, line 145
def loc
    Engine2::LOCS[self]
end
q(col) click to toggle source
# File lib/engine2/core.rb, line 149
def q col
    col.qualify self
end