lib/goby/entity/entity.rb
def clear_inventory
      while @inventory.size.nonzero?
        @inventory.pop
      end
    end
# Removes all items from the entity's inventory.
Removes all items from the entity's inventory.
Removes all items from the entity ' s inventory .
def clear_inventory
      while @inventory.size.nonzero?
        @inventory.pop
      end
    end
def clear_inventory while @inventory . size . nonzero? @inventory . pop end end
Removes all items from the entity's inventory.
Removes all items from the entity ' s inventory .