Sha256: ff244a63330f31c951a9afa635f2ed25b67275ed0864f9389f5ebabee65ce07d

Contents?: true

Size: 451 Bytes

Versions: 5

Compression:

Stored size: 451 Bytes

Contents

require 'fig/logging'
require 'fig/packageerror'
require 'fig/statement'

module Fig; end

# A statement that specifies or modifies a path environment variable, e.g.
# "append", "path", "add" (though those are all synonyms).
class Fig::Statement::Path
  include Fig::Statement

  attr_reader :name, :value

  def initialize(name, value)
    @name = name
    @value = value
  end

  def unparse(indent)
    "#{indent}append #{name}=#{value}"
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fig-0.1.57 lib/fig/statement/path.rb
fig-0.1.55 lib/fig/statement/path.rb
fig-0.1.54 lib/fig/statement/path.rb
fig-0.1.53 lib/fig/statement/path.rb
fig-0.1.52 lib/fig/statement/path.rb