lib/nokogiri/diff/xml/document.rb in nokogiri-diff-0.1.2 vs lib/nokogiri/diff/xml/document.rb in nokogiri-diff-0.2.0
- old
+ new
@@ -4,20 +4,20 @@
#
# Overrides `tdiff` to only compare the child nodes of the document.
#
def tdiff(tree,&block)
- return enum_for(:tdiff,tree) unless block
+ return enum_for(__method__,tree) unless block
tdiff_recursive(tree,&block)
return self
end
#
# Overrides `tdiff_unordered` to only compare the child nodes of the document.
#
def tdiff_unordered(tree,&block)
- return enum_for(:tdiff_unordered,tree) unless block
+ return enum_for(__method__,tree) unless block
tdiff_recursive_unordered(tree,&block)
return self
end