Module: Smartdict::Icons

Extended by:
Icons
Included in:
Icons
Defined in:
lib/smartdict/icons.rb

Instance Method Summary collapse

Instance Method Details

#icon(name, filename) ⇒ Object



9
10
11
12
13
# File 'lib/smartdict/icons.rb', line 9

def icon(name, filename)
  define_method(name) do
    "#{icons_root}/#{filename}"
  end
end

#icons_rootObject



5
6
7
# File 'lib/smartdict/icons.rb', line 5

def icons_root
  File.expand_path("../../../icons", __FILE__)
end