lib/demiurge/container.rb
# This makes sure the given item name is *not* listed in the
# container's contents. It does not make sure the item exists, nor
# do anything with the item's position.
#
# @see #ensure_contains
# @see #move_item_inside
# @param item_name [String] The item name
# @return [void]
# @since 0.0.1
This makes sure the given item name is *not* listed in the
container's contents. It does not make sure the item exists, nor
do anything with the item's position.
This makes sure the given item name is * not * listed in the container ' s contents . It does not make sure the item exists nor do anything with the item ' s position .
def ensure_does_not_contain(item_name)
      raise("Pass only item names to ensure_does_not_contain!") unless item_name.is_a?(String)
      @state["contents"] -= [item_name]
      nil
    end
def ensure_does_not_contain ( item_name ) raise ( "Pass only item names to ensure_does_not_contain!" ) unless item_name . is_a? ( String ) @state [ "contents" ] -= [ item_name ] nil end
This makes sure the given item name is *not* listed in the
container's contents.
This makes sure the given item name is * not * listed in the container ' s contents .
None
void
item_name
The item name
The item name
see
None
see
None
since
None