Module: Bashly::AssetHelper
- Included in:
- Commands::Base, Libraries::Help, MessageStrings, RenderSource, Settings
- Defined in:
- lib/bashly/concerns/asset_helper.rb
Instance Method Summary collapse
Instance Method Details
#asset(path) ⇒ Object
[View source]
3 4 5 |
# File 'lib/bashly/concerns/asset_helper.rb', line 3 def asset(path) File. "../#{path}", __dir__ end |
#asset_content(path) ⇒ Object
[View source]
7 8 9 |
# File 'lib/bashly/concerns/asset_helper.rb', line 7 def asset_content(path) File.read asset(path) end |