lib/xsd_model/parser.rb in xsd_model-0.6.0 vs lib/xsd_model/parser.rb in xsd_model-0.7.0
- old
+ new
@@ -27,10 +27,10 @@
children = collect_children(node).map { |child| parse_node(child) }
attributes = node.attributes.transform_values(&:value)
namespaces = node.namespaces
- klass.new(children, attributes, namespaces)
+ klass.new(children, attributes: attributes, namespaces: namespaces, css_path: node.css_path)
end
def collect_children(node)
skippable, collectible = node.children.partition do |child|
(@options[:collect_only] && !@options[:collect_only].call(child)) ||