Class: Fig::Command
- Inherits:
-
Object
- Object
- Fig::Command
- Defined in:
- lib/fig/package.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
Instance Method Summary collapse
-
#initialize(command) ⇒ Command
constructor
A new instance of Command.
- #unparse(indent) ⇒ Object
Constructor Details
#initialize(command) ⇒ Command
Returns a new instance of Command.
181 182 183 |
# File 'lib/fig/package.rb', line 181 def initialize(command) @command = command end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
179 180 181 |
# File 'lib/fig/package.rb', line 179 def command @command end |
Instance Method Details
#unparse(indent) ⇒ Object
185 186 187 |
# File 'lib/fig/package.rb', line 185 def unparse(indent) "#{indent}command \"#{@command}\"" end |