Class: Symbol

Inherits:
Object show all
Defined in:
lib/engine2/core.rb

Instance Method Summary collapse

Instance Method Details

#iconObject



132
133
134
135
136
137
138
139
# File 'lib/engine2/core.rb', line 132

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

#locObject



145
146
147
# File 'lib/engine2/core.rb', line 145

def loc
    Engine2::LOCS[self]
end

#q(col) ⇒ Object



141
142
143
# File 'lib/engine2/core.rb', line 141

def q col
    col.qualify self
end