Sha256: feb3168d831eb672b13a93d9358bd20d21c4723e63c0e3d0df701b753da07e09
Contents?: true
Size: 475 Bytes
Versions: 35
Compression:
Stored size: 475 Bytes
Contents
require 'fig/logging' require 'fig/packageerror' require 'fig/package/statement' module Fig; end class Fig::Package; end class Fig::Package::Install include Fig::Package::Statement def initialize(statements) @statements = statements end def unparse(indent) prefix = "\n#{indent}install" body = @statements.map { |statement| statement.unparse(indent+' ') }.join("\n") suffix = "#{indent}end" return [prefix, body, suffix].join("\n") end end
Version data entries
35 entries across 35 versions & 2 rubygems