class Strut::SlimCommand

Attributes

id[R]
metadata[R]

Public Class Methods

new(id, metadata) click to toggle source
# File lib/strut/slim_command.rb, line 8
def initialize(id, metadata)
  @id = id
  @metadata = metadata
end

Public Instance Methods

to_a() click to toggle source
# File lib/strut/slim_command.rb, line 13
def to_a
  [@id, command]
end
to_s() click to toggle source
# File lib/strut/slim_command.rb, line 17
def to_s
  sprintf("[%2d]", @id)
end