Skip to content

Commit

Permalink
Nokogiri::XSLT() uses parameter forwarding
Browse files Browse the repository at this point in the history
part of #3323
  • Loading branch information
flavorjones committed Dec 8, 2024
1 parent 7b87461 commit a77e1bb
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions lib/nokogiri/xslt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,9 @@

module Nokogiri
class << self
###
# Create a Nokogiri::XSLT::Stylesheet with +stylesheet+.
#
# Example:
#
# xslt = Nokogiri::XSLT(File.read(ARGV[0]))
#
def XSLT(stylesheet, modules = {})
XSLT.parse(stylesheet, modules)
# Convenience method for Nokogiri::XSLT.parse
def XSLT(...)
XSLT.parse(...)
end
end

Expand Down

0 comments on commit a77e1bb

Please sign in to comment.