Mini Shell
--- !ruby/object:RI::MethodDescription
aliases: []
block_params:
comment:
- !ruby/struct:SM::Flow::P
body: Reorders an array of nodes so that they are in document order It tries to do this efficiently.
- !ruby/struct:SM::Flow::P
body: "FIXME: I need to get rid of this, but the issue is that most of the XPath interpreter functions as a filter, which means that we lose context going in and out of function calls. If I knew what the index of the nodes was, I wouldn't have to do this. Maybe add a document IDX for each node? Problems with mutable documents. Or, rewrite everything."
full_name: REXML::XPathParser#document_order
is_singleton: false
name: document_order
params: ( array_of_nodes )
visibility: private
Zerion Mini Shell 1.0