diff --git a/lib/nokogiri/xslt.rb b/lib/nokogiri/xslt.rb index 73072d9d0fd..00432b82ee7 100644 --- a/lib/nokogiri/xslt.rb +++ b/lib/nokogiri/xslt.rb @@ -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