Skip to content

Commit

Permalink
Change param forwarding syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
mononoken committed Nov 14, 2024
1 parent 64bb0b1 commit ebbdb3f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/nokogiri/html5.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ module Nokogiri
# ⚠ HTML5 functionality is not available when running JRuby.
#
# Parse an HTML5 document. Convenience method for {Nokogiri::HTML5::Document.parse}
def self.HTML5(input, url = nil, encoding = nil, **options, &block)
Nokogiri::HTML5::Document.parse(input, url, encoding, **options, &block)
def self.HTML5(...)
Nokogiri::HTML5::Document.parse(...)
end

# == Usage
Expand Down Expand Up @@ -268,14 +268,14 @@ def self.HTML5(input, url = nil, encoding = nil, **options, &block)
module HTML5
class << self
# Parse an HTML 5 document. Convenience method for Nokogiri::HTML5::Document.parse
def parse(string, url = nil, encoding = nil, **options, &block)
Document.parse(string, url, encoding, **options, &block)
def parse(...)
Document.parse(...)
end

# Parse a fragment from +string+. Convenience method for
# Nokogiri::HTML5::DocumentFragment.parse.
def fragment(string, encoding = nil, **options)
DocumentFragment.parse(string, encoding, **options)
def fragment(...)
DocumentFragment.parse(...)
end

# :nodoc:
Expand Down

0 comments on commit ebbdb3f

Please sign in to comment.