Module: Classy::Yaml::IconHelper

Includes:
Helpers
Defined in:
lib/classy/yaml/icon_helper.rb

Instance Method Summary collapse

Methods included from Helpers

#yass

Instance Method Details

#icon(name, **arguments) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/classy/yaml/icon_helper.rb', line 6

def icon(name, **arguments)
  val = arguments[:class]
  if val.is_a?(Symbol) || val.is_a?(Hash) || val.is_a?(Array)
    arguments[:class] = yass(val)
  end
  super(name, **arguments)
end