Class: Fig::Package::Command

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Statement

#urls, #walk_statements

Constructor Details

#initialize(command) ⇒ Command

Returns a new instance of Command.



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

def initialize(command)
  @command = command
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



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

def command
  @command
end

Instance Method Details

#unparse(indent) ⇒ Object



17
18
19
# File 'lib/fig/package/command.rb', line 17

def unparse(indent)
  %Q<#{indent}command "#{@command}">
end