class Simnos::Converter
Public Class Methods
new(topics_by_name, region)
click to toggle source
# File lib/simnos/converter.rb, line 5 def initialize(topics_by_name, region) @topics_by_name = topics_by_name @region = region end
Public Instance Methods
convert() { |output_topic(topics_by_name, region)| ... }
click to toggle source
# File lib/simnos/converter.rb, line 10 def convert yield output_topic(@topics_by_name, @region) end
Private Instance Methods
output_topic(topics_by_name, region)
click to toggle source
# File lib/simnos/converter.rb, line 16 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