Module: Kernel

Defined in:
lib/alphred/icon.rb

Instance Method Summary collapse

Instance Method Details

#Icon(value) ⇒ Object



32
33
34
35
36
37
38
# File 'lib/alphred/icon.rb', line 32

def Icon(value)
  case value
  when Alphred::Icon then value
  when String        then Alphred::Icon.new(value: value)
  when Hash          then Alphred::Icon.new(**value)
  end
end