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

Version Path
fig18-0.1.50-i386-mswin32 lib/fig/package/install.rb
fig18-0.1.50 lib/fig/package/install.rb
fig-0.1.50-java lib/fig/package/install.rb
fig-0.1.50 lib/fig/package/install.rb
fig18-0.1.50-i386-mingw32 lib/fig/package/install.rb
fig-0.1.49-java lib/fig/package/install.rb
fig-0.1.49 lib/fig/package/install.rb
fig18-0.1.49 lib/fig/package/install.rb
fig18-0.1.49-i386-mswin32 lib/fig/package/install.rb
fig18-0.1.49-i386-mingw32 lib/fig/package/install.rb
fig18-0.1.48 lib/fig/package/install.rb
fig18-0.1.48-i386-mswin32 lib/fig/package/install.rb
fig18-0.1.48-i386-mingw32 lib/fig/package/install.rb
fig-0.1.48 lib/fig/package/install.rb
fig-0.1.48-java lib/fig/package/install.rb
fig18-0.1.47 lib/fig/package/install.rb
fig18-0.1.47-i386-mswin32 lib/fig/package/install.rb
fig18-0.1.47-i386-mingw32 lib/fig/package/install.rb
fig-0.1.47 lib/fig/package/install.rb
fig-0.1.47-java lib/fig/package/install.rb