Class: UiBibz::Utils::GlyphChanger
- Inherits:
-
Object
- Object
- UiBibz::Utils::GlyphChanger
- Defined in:
- lib/ui_bibz/utils/glyph_changer.rb
Overview
Glyph changer
=> ui_link 'My link', url: '#', glyph: { type: :group, items: [{ name: 'circle', stataus: :danger },{ name: 'times', inverse: true, transform:'shrink-6'}] }
Instance Method Summary collapse
-
#initialize(glyph_options, options = {}) ⇒ GlyphChanger
constructor
A new instance of GlyphChanger.
- #render ⇒ Object
Constructor Details
#initialize(glyph_options, options = {}) ⇒ GlyphChanger
8 9 10 11 |
# File 'lib/ui_bibz/utils/glyph_changer.rb', line 8 def initialize(, = {}) = = end |
Instance Method Details
#render ⇒ Object
13 14 15 |
# File 'lib/ui_bibz/utils/glyph_changer.rb', line 13 def render .is_a?(Hash) ? glyph_or_glyph_group : glyph_by_hash end |