Module: Canals::Tools::Assets

Extended by:
Assets
Included in:
Assets
Defined in:
lib/canals/tools/assets.rb

Constant Summary collapse

BASE =
File.expand_path('../../../../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.expand_path(file, BASE)
end