Class: Fig::Package::Set
- Inherits:
-
Object
- Object
- Fig::Package::Set
- Includes:
- Statement
- Defined in:
- lib/fig/package/set.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(name, value) ⇒ Set
constructor
A new instance of Set.
- #unparse(indent) ⇒ Object
Methods included from Statement
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
11 12 13 |
# File 'lib/fig/package/set.rb', line 11 def name @name end |
#value ⇒ Object (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 |