Sha256: 58c54c8b5e0ec99319807a2bc377aeb9dbd2c771851de00a850632002db1b1b6
Contents?: true
Size: 460 Bytes
Versions: 6
Compression:
Stored size: 460 Bytes
Contents
module GlyphExtension # Render glyph and content html def glyph_and_content_html content_html = nil [glyph_with_space, content_html || content].compact.join.html_safe end # Render glyph with space html def glyph_with_space "#{ glyph } " unless glyph.nil? end # Render glyph html def glyph glyph_info = options[:glyph] if options.kind_of?(Hash) UiBibz::Ui::Core::Glyph.new(glyph_info).render unless glyph_info.nil? end end
Version data entries
6 entries across 6 versions & 1 rubygems