class Gollum::Macro::Octicon
Public Instance Methods
render(symbol, height = nil, width = nil)
click to toggle source
# File lib/gollum-lib/macro/octicon.rb, line 4 def render(symbol, height = nil, width = nil) parameters = {} parameters[:height] = height if height parameters[:width] = width if width "<div>#{Octicons::Octicon.new(symbol, parameters).to_svg}</div>" end