Sha256: aef50c640dc3a65779ce8f7186a92e0045f026704ca805a845d62df009e47a7b
Contents?: true
Size: 297 Bytes
Versions: 1
Compression:
Stored size: 297 Bytes
Contents
# encoding: utf-8 module Filegen class ErbGenerator attr_reader :template_binding def initialize(template_binding) @template_binding = template_binding end def compile(source,destination) destination.puts ERB.new(source).result(template_binding) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
filegen-0.0.1 | lib/filegen/erb_generator.rb |