Module: Smartdict::Icons
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_root ⇒ Object
5 6 7 |
# File 'lib/smartdict/icons.rb', line 5 def icons_root File.("../../../icons", __FILE__) end |