Method: Mixml::Selection#initialize

Defined in:
lib/mixml/selection.rb

#initialize(nodesets) ⇒ Selection

Returns a new instance of Selection.

Parameters:

  • nodesets (Array<Nokogiri::XML::NodeSet>)

    Selected nodes



11
12
13
# File 'lib/mixml/selection.rb', line 11

def initialize(nodesets)
    @nodesets = nodesets
end