Class: Fig::Command

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#commandObject (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