Skip to content

Commit

Permalink
Renamed load_doc to parse_doc.
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed May 12, 2024
1 parent e8dee03 commit dd7c341
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/ronin/web/cli/commands/diff.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ class Diff < Command
# The URL or file path of the modified page.
#
def run(page1,page2)
doc1 = load_doc(page1)
doc2 = load_doc(page2)
doc1 = parse_doc(page1)
doc2 = parse_doc(page2)

doc1.diff(doc2) do |change,node|
unless change == ' '
Expand Down Expand Up @@ -117,7 +117,7 @@ def read(source)
# @return [Nokogiri::HTML::Document, Nokogiri::XML::Document]
# html or xml document depends upon --format option
#
def load_doc(page)
def parse_doc(page)
case options[:format]
when :html
Nokogiri::HTML(read(page))
Expand Down

0 comments on commit dd7c341

Please sign in to comment.