Sha256: 5af926470233edae8dc1f36adfe506f662583c753c774d5fb1cd99fe3a494a44
Contents?: true
Size: 501 Bytes
Versions: 6
Compression:
Stored size: 501 Bytes
Contents
require 'erb' module Kashi class Converter def initialize(tests_by_id, contact_groups_by_id) @tests_by_id = tests_by_id @contact_groups_by_id = contact_groups_by_id end def convert yield output_test(@tests_by_id, @contact_groups_by_id) end private def output_test(tests_by_id, contact_groups_by_id) path = Pathname.new(File.expand_path('../', __FILE__)).join('output_test.erb') ERB.new(path.read, nil, '-').result(binding) end end end
Version data entries
6 entries across 6 versions & 1 rubygems