module NokogiriTools::Tree

Public Instance Methods

remove_keeping_children() click to toggle source
# File lib/nokogiri-tools.rb, line 28
def remove_keeping_children
  children.each { |child| before(child) }
  remove
end
remove_with_parent() click to toggle source
# File lib/nokogiri-tools.rb, line 33
def remove_with_parent
  parent ? parent.remove : remove
end