Sha256: c42878054a29047c43e7e6c78afa4e615b3216ce061f52d0e40db3b17a3f13dc
Contents?: true
Size: 425 Bytes
Versions: 7
Compression:
Stored size: 425 Bytes
Contents
module GlyphExtension # Render glyph and content html def glyph_and_content_html [glyph_with_space, 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
7 entries across 7 versions & 1 rubygems