Module: Kernel

Defined in:
lib/alphred/item.rb

Instance Method Summary collapse

Instance Method Details

#Icon(arg) ⇒ Object



46
47
48
49
50
51
52
# File 'lib/alphred/item.rb', line 46

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