DannyBen/bashly

View on GitHub
lib/bashly/concerns/asset_helper.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Bashly
  module AssetHelper
    def asset(path)
      File.expand_path "../#{path}", __dir__
    end

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