Sha256: 9a4e523a8fc4f340113361e75bdd05b9ec0d4603152b8478bc58e03319df7207

Contents?: true

Size: 430 Bytes

Versions: 3

Compression:

Stored size: 430 Bytes

Contents

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 < Fig::Statement
  attr_reader :name, :value

  def initialize(line_column, name, value)
    super(line_column)

    @name = name
    @value = value
  end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fig-0.1.62 lib/fig/statement/path.rb
fig-0.1.61 lib/fig/statement/path.rb
fig-0.1.59 lib/fig/statement/path.rb