Sha256: ae83158121d48bf52e5b33750ba94365b073d354fec7b502e0c8d27f3ca4e6e8
Contents?: true
Size: 290 Bytes
Versions: 4
Compression:
Stored size: 290 Bytes
Contents
require "octicons" require "action_view" module OcticonsHelper include ActionView::Helpers::TagHelper def octicon(symbol, options = {}) return "" if symbol.nil? icon = Octicons::Octicon.new(symbol, options) content_tag(:svg, icon.path.html_safe, icon.options) end end
Version data entries
4 entries across 4 versions & 1 rubygems