Skip to content

Commit

Permalink
FFI port of a0905d3 for #452.
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed May 19, 2011
1 parent b74e896 commit d76926a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/nokogiri/ffi/xslt/stylesheet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ def serialize(document) # :nodoc:
end

def transform(document, params=[]) # :nodoc:
unless document.kind_of? Nokogiri::XML::Document
raise ArgumentError, "argument must be a Nokogiri::XML::Document"
end

params = params.to_a.flatten if params.is_a?(Hash)
raise(TypeError) unless params.is_a?(Array)

Expand Down

0 comments on commit d76926a

Please sign in to comment.