Class: Strut::SlimCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/strut/slim_command.rb

Direct Known Subclasses

CallCommand, ImportCommand, MakeCommand

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, metadata) ⇒ SlimCommand

Returns a new instance of SlimCommand.



8
9
10
11
# File 'lib/strut/slim_command.rb', line 8

def initialize(id, )
  @id = id
   = 
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



5
6
7
# File 'lib/strut/slim_command.rb', line 5

def id
  @id
end

#metadataObject (readonly)

Returns the value of attribute metadata.



6
7
8
# File 'lib/strut/slim_command.rb', line 6

def 
  
end

Instance Method Details

#to_aObject



13
14
15
# File 'lib/strut/slim_command.rb', line 13

def to_a
  [@id, command]
end

#to_sObject



17
18
19
# File 'lib/strut/slim_command.rb', line 17

def to_s
  sprintf("[%2d]", @id)
end