Sha256: f909dd006ba798a79e86355b5abcc0c11ecca688d46a36f3ad9e174622ed19ce
Contents?: true
Size: 572 Bytes
Versions: 6
Compression:
Stored size: 572 Bytes
Contents
module Cucumber module HTMLFormatter class AssetsLoader def template read_asset('index.mustache.html') end def css read_asset('main.css') end def script read_asset('main.js') end private def read_asset(name) File.read(File.join(assets_path, name)) end def assets_path "#{html_formatter_path}/assets" end def html_formatter_path Gem.loaded_specs['cucumber-html-formatter'].full_gem_path rescue '.' end end end end
Version data entries
6 entries across 6 versions & 2 rubygems