Class: ClasslessMud::Commands::Inventory
- Inherits:
-
Object
- Object
- ClasslessMud::Commands::Inventory
- Defined in:
- lib/classless_mud/commands/inventory.rb
Class Method Summary collapse
Class Method Details
.perform(game, player, message) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/classless_mud/commands/inventory.rb', line 4 def self.perform game, player, player.puts "Inventory:" player.items.each do |item| player.puts " #{item.name}" end end |