Changeset 105
- Timestamp:
- 01/31/2007 15:24:22 (22 months ago)
- Files:
-
- 1 modified
-
trunk/lib/hpricot/elements.rb (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/hpricot/elements.rb
r97 r105 1 1 module Hpricot 2 # Once you've matched a list of elements, you will often need to handle them as a group. Or you 3 # may want to perform the same action on each of them. Hpricot::Elements is an extension of Ruby's 4 # array class, with some methods added for altering elements contained in the array. 2 # Once you've matched a list of elements, you will often need to handle them as 3 # a group. Or you may want to perform the same action on each of them. 4 # Hpricot::Elements is an extension of Ruby's array class, with some methods 5 # added for altering elements contained in the array. 5 6 # 6 7 # If you need to create an element array from regular elements: … … 8 9 # Hpricot::Elements[ele1, ele2, ele3] 9 10 # 10 # Assuming that ele1, ele2 and ele3 contain element objects (Hpricot::Elem, Hpricot::Doc, etc.) 11 # Assuming that ele1, ele2 and ele3 contain element objects (Hpricot::Elem, 12 # Hpricot::Doc, etc.) 11 13 # 12 14 # == Continuing Searches
