Class: Fig::Package::Set

Inherits:
Object
  • Object
show all
Includes:
Statement
Defined in:
lib/fig/package/set.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Statement

#urls, #walk_statements

Constructor Details

#initialize(name, value) ⇒ Set

Returns a new instance of Set.



13
14
15
16
# File 'lib/fig/package/set.rb', line 13

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

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



11
12
13
# File 'lib/fig/package/set.rb', line 11

def name
  @name
end

#valueObject (readonly)

Returns the value of attribute value.



11
12
13
# File 'lib/fig/package/set.rb', line 11

def value
  @value
end

Instance Method Details

#unparse(indent) ⇒ Object



18
19
20
# File 'lib/fig/package/set.rb', line 18

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