module Smartdict::Icons

Public Instance Methods

icon(name, filename) click to toggle source
# File lib/smartdict/icons.rb, line 9
def icon(name, filename)
  define_method(name) do
    "#{icons_root}/#{filename}"
  end
end
icons_root() click to toggle source
# File lib/smartdict/icons.rb, line 5
def icons_root
  File.expand_path("../../../icons", __FILE__)
end