Changeset 113
- Timestamp:
- 02/18/2007 02:25:34 (22 months ago)
- Files:
-
- 1 modified
-
trunk/lib/hpricot/elements.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/hpricot/elements.rb
r112 r113 119 119 # 120 120 # doc = Hpricot("<p> We have <i>so much</i> to say.</p>") 121 # doc.search("i").empty !121 # doc.search("i").empty 122 122 # doc.to_html 123 123 # => "<p> We have <i></i> to say.</p>" 124 124 # 125 def empty !125 def empty 126 126 each { |x| x.inner_html = nil } 127 127 end
