Sha256: 5201c39fb0dcfbf8200ac4d6eefb9ba1087346f570537f345eae0ca521bb4991
Contents?: true
Size: 694 Bytes
Versions: 1
Compression:
Stored size: 694 Bytes
Contents
module BootstrapIt # module ViewHelpers # # Icon # # @author Alexey Ovchinnikov <alexiss@cybernetlab.ru> # # @see http://getbootstrap.com/components/#glyphicons Bootstrap docs # @see http://fontawesome.io/icons/ Font awesome icon list class Icon < WrapIt::Base omit_content after_initialize do @tag = 'i' @icon = @arguments.extract_first!(Symbol, String) @icon.nil? && @icon = 'asterisk' @icon = @icon.to_s prefix = BootstrapIt.config.font_awesome ? 'fa' : 'glyphicon' add_html_class [prefix, "#{prefix}-#{@icon}"] end end register :icon, 'BootstrapIt::ViewHelpers::Icon' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bootstrap_it-0.1.2 | lib/bootstrap_it/view_helpers/icon.rb |