class PlayedCommands

Public Class Methods

new() click to toggle source
# File managables/programs/game_aided_manufacturing/gam.rb, line 36
def initialize
  @played_commands = []
end

Public Instance Methods

any?() click to toggle source
# File managables/programs/game_aided_manufacturing/gam.rb, line 44
def any?
  @played_commands.any?
end
last() click to toggle source
# File managables/programs/game_aided_manufacturing/gam.rb, line 48
def last
  @played_commands.last
end
played_commands() click to toggle source
# File managables/programs/game_aided_manufacturing/gam.rb, line 40
def played_commands
  @played_commands
end
push(command) click to toggle source
# File managables/programs/game_aided_manufacturing/gam.rb, line 52
def push(command)
  @played_commands.push(command)
end