Class: Fig::Path
- Inherits:
-
Object
- Object
- Fig::Path
- Defined in:
- lib/fig/package.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) ⇒ Path
constructor
A new instance of Path.
- #unparse(indent) ⇒ Object
Constructor Details
#initialize(name, value) ⇒ Path
Returns a new instance of Path.
137 138 139 140 |
# File 'lib/fig/package.rb', line 137 def initialize(name, value) @name = name @value = value end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
135 136 137 |
# File 'lib/fig/package.rb', line 135 def name @name end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
135 136 137 |
# File 'lib/fig/package.rb', line 135 def value @value end |
Instance Method Details
#unparse(indent) ⇒ Object
142 143 144 |
# File 'lib/fig/package.rb', line 142 def unparse(indent) "#{indent}append #{name}=#{value}" end |