Sha256: 73bad24250ea5b8b52b86d129ec8488f5f6cb5bf0b5ed3b8ad4c46fec4feb1d6
Contents?: true
Size: 450 Bytes
Versions: 9
Compression:
Stored size: 450 Bytes
Contents
require 'erb' module Simnos class Converter def initialize(topics_by_name, region) @topics_by_name = topics_by_name @region = region end def convert yield output_topic(@topics_by_name, @region) end private def output_topic(topics_by_name, region) path = Pathname.new(File.expand_path('../', __FILE__)).join('output_topic.erb') ERB.new(path.read, nil, '-').result(binding) end end end
Version data entries
9 entries across 9 versions & 1 rubygems