From bb02db4fbd064e5ea63fa666fcecf7deef594493 Mon Sep 17 00:00:00 2001 From: Peter Leitzen Date: Tue, 7 Mar 2023 13:01:39 +0100 Subject: [PATCH] Remove unnecessary explicit receiver in Html2Text.convert This makes subclassing Html2Text easier as `convert` does not have to be reimplemented. --- lib/html2text.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/html2text.rb b/lib/html2text.rb index d672cbc..83c17c0 100644 --- a/lib/html2text.rb +++ b/lib/html2text.rb @@ -25,7 +25,7 @@ def self.convert(html) html = fix_newlines(replace_entities(html)) doc = Nokogiri::HTML(html) - Html2Text.new(doc).convert + new(doc).convert end def self.fix_newlines(text)