Class: Symbol
Instance Method Summary collapse
Instance Method Details
#icon ⇒ Object
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 |
#loc ⇒ Object
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 |