Module: FontAwesomeHelper::Helpers
- Defined in:
- lib/font-awesome-helper/helpers.rb
Constant Summary collapse
- FA_CLASS_PREFIX =
'fa'
Instance Method Summary collapse
-
#fa_icon(names, options = {}) ⇒ Object
TODO: fw (e.g. ‘fa_icon ’github’, fixed: true`) TODO: border (e.g. ‘fa_icon ’github’, border: true`) TODO: spin (e.g. ‘fa_icon ’github’, spin: true`) TODO: size (e.g. ‘fa_icon ’github’, size: ‘2x’‘) TODO: rotate (e.g. `fa_icon ’github’, rotate: 90`) TODO: flip (e.g. ‘fa_icon ’github’, flip: :vertical`).
Instance Method Details
#fa_icon(names, options = {}) ⇒ Object
TODO: fw (e.g. ‘fa_icon ’github’, fixed: true`) TODO: border (e.g. ‘fa_icon ’github’, border: true`) TODO: spin (e.g. ‘fa_icon ’github’, spin: true`) TODO: size (e.g. ‘fa_icon ’github’, size: ‘2x’‘) TODO: rotate (e.g. `fa_icon ’github’, rotate: 90`) TODO: flip (e.g. ‘fa_icon ’github’, flip: :vertical`)
11 12 13 14 |
# File 'lib/font-awesome-helper/helpers.rb', line 11 def fa_icon(names, = {}) icon = FaIcon.new(names, ) (block_given? ? yield(icon.to_tag) : icon.to_tag).html_safe end |