Module: Canals::Tools::Assets
Constant Summary collapse
- BASE =
File.('../../../../assets', __FILE__)
Instance Method Summary collapse
Instance Method Details
#asset(file) ⇒ Object
11 12 13 |
# File 'lib/canals/tools/assets.rb', line 11 def asset(file) File.read(asset_path(file)) end |
#asset_path(file) ⇒ Object
7 8 9 |
# File 'lib/canals/tools/assets.rb', line 7 def asset_path(file) File.(file, BASE) end |