lib/greygoo/role/container.rb
def has?(object, collection_name = 'objects')
				sym = "@#{collection_name}".to_sym
				myobjs = objs(sym)
				return myobjs.any? {|e| e.id.id == object.id.id}
			end
# Checks whether an object is in the container
#
# @param [Object] object The object to check
Checks whether an object is in the container
Checks whether an object is in the container
def has?(object, collection_name = 'objects')
				sym = "@#{collection_name}".to_sym
				myobjs = objs(sym)
				return myobjs.any? {|e| e.id.id == object.id.id}
			end
def has? ( object , collection_name = 'objects' ) sym = "@#{collection_name}" . to_sym myobjs = objs ( sym ) return myobjs . any? { | e | e . id . id == object . id . id } end
Checks whether an object is in the container
Checks whether an object is in the container
object
collection_name
object The object to check
object The object to check