Class container - a list of SQLObjects with aliases
# File lib/sqlobject.rb, line 199 def << ( *list ) @list += _getList *list return self end
# File lib/sqlobject.rb, line 216 def delete_if ( &block ) @list.delete_if &block end
# File lib/sqlobject.rb, line 212 def each ( &block ) @list.each &block end
# File lib/sqlobject.rb, line 232 def each_with_index ( &block ) @list.each_with_index &block end
# File lib/sqlobject.rb, line 224 def find ( &block ) @list.find &block end
# File lib/sqlobject.rb, line 204 def push ( *list ) @list += _getList( *list ) end
# File lib/sqlobject.rb, line 245 def _getList ( *list ) new_list = [ ] # If list is a hash of objects with aliases: if list.length == 1 && list[0].is_a?( Hash ) new_list += _hash2array list[0] # If list is an array of objects: else new_list = list.map { |src| SQLObject.get src } end end
Generated with the Darkfish Rdoc Generator 2.