Sha256: 6a0c5d1ac031cd83c66458bd50db34e3daa220c97adfe7eff1db042b2620ae14
Contents?: true
Size: 440 Bytes
Versions: 1
Compression:
Stored size: 440 Bytes
Contents
module Polytrix class DocumentationGenerator include Polytrix::Core::FileFinder attr_reader :template_file def initialize(search_path) @search_path = search_path end def process(scenario, challenges) @template_file = find_file @search_path, scenario, "" erb = ERB.new File.read(template_file) erb.result binding rescue Polytrix::Core::FileFinder::FileNotFound nil end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
polytrix-0.0.1 | lib/polytrix/documentation_generator.rb |