Sha256: 5017ac3c90c713d943f9837d0be3fb765f6ba2543b60a70a32d094e5b0b6a2c3
Contents?: true
Size: 539 Bytes
Versions: 5
Compression:
Stored size: 539 Bytes
Contents
require 'fig/logging' require 'fig/packageerror' require 'fig/package/statement' module Fig; end class Fig::Package; end # This class appears to be unused, though it is in the grammar. 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
5 entries across 5 versions & 2 rubygems