Changeset 113

Show
Ignore:
Timestamp:
02/18/2007 02:25:34 (22 months ago)
Author:
lwu
Message:

Undo replace of Elements.empty with Elements.empty!

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/lib/hpricot/elements.rb

    r112 r113  
    119119    # 
    120120    #   doc = Hpricot("<p> We have <i>so much</i> to say.</p>") 
    121     #   doc.search("i").empty! 
     121    #   doc.search("i").empty 
    122122    #   doc.to_html 
    123123    #     => "<p> We have <i></i> to say.</p>" 
    124124    # 
    125     def empty! 
     125    def empty 
    126126      each { |x| x.inner_html = nil } 
    127127    end