module Spregen::Template

Public Instance Methods

build(binding) click to toggle source
# File lib/spregen/template.rb, line 6
def build(binding)
  template = File.read(File.expand_path('../../templates/default.erb', __FILE__))
  ERB.new(template).result(binding)
end