Sha256: 02a898e218c57f34fce1e3a2ed509ddf51a478a2592ea7b476a1e58a18d57939
Contents?: true
Size: 539 Bytes
Versions: 5
Compression:
Stored size: 539 Bytes
Contents
module Floorplanner class Document def to_rib(design_id,out_path) @design = Design.new(@xml,design_id) @design.build_geometries rib = File.new(out_path,'w') rib.write @design.to_rib rib.close end end module RibExport def to_rib raise "No geometries to export. Call build_geometries first" unless @areas && @walls template = ERB.new( File.read( File.join(Floorplanner.config['views_path'],'design.rib.erb'))) template.result(binding) end end end
Version data entries
5 entries across 5 versions & 2 rubygems