I might be wrong here, but I always assumed the Enumerables object was a base class and not instantiated on its own. However the Array object has all the functionality of Enumerables. Thus, all the normal Array functions (http://www.w3schools.com/jsref/jsref_obj_array.asp ) and the Enumerables are possible on an Array.
Thus, your assumption is correct. You can use push() pop() and shift() etc. -Andrew Martinez -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Wahlin Sent: Wednesday, June 28, 2006 9:27 AM To: rails-spinoffs@lists.rubyonrails.org Subject: [Rails-spinoffs] Add to enumerable This might seem like a really daft question, but I couldn't find an answer anywhere. How do you add something to an enumerable object? Something like var first = $A(getElementsByTagName('td')); var second = $A(getElementsByTagName('tr')); first.PUSH(second); where the PUSH is something unknown. am i supposed to use inject here in some way? Andreas _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs