Sha256: 161e9972ff73ba49a0520d811276f35c2c886c8012320af93dfe65ec87e40339
Contents?: true
Size: 616 Bytes
Versions: 7
Compression:
Stored size: 616 Bytes
Contents
# frozen_string_literal: true 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 StandardError '.' end end end end
Version data entries
7 entries across 7 versions & 1 rubygems