Sha256: 39435bd498ea3de9f6407c84af78f8f120955f4b4fab5815e975e1de6edc0161
Contents?: true
Size: 313 Bytes
Versions: 3
Compression:
Stored size: 313 Bytes
Contents
require "pathname" require "yaml" require "peto/generator" module Peto class Master def load(filename) @contract = YAML.load(IO.read(Pathname(filename))) end attr_reader :contract def generate Generator.new(@contract).generate("lib/templates/rb_procedures.erb") end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
peto-0.1.2 | lib/peto/master.rb |
peto-0.1.1 | lib/peto/master.rb |
peto-0.1.0 | lib/peto/master.rb |