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



3
4
5
# File 'lib/bashly/concerns/asset_helper.rb', line 3

def asset(path)
  File.expand_path "../#{path}", __dir__
end

#asset_content(path) ⇒ Object



7
8
9
# File 'lib/bashly/concerns/asset_helper.rb', line 7

def asset_content(path)
  File.read asset(path)
end