Class: Sekken::XS::AttributeGroup
- Defined in:
- lib/sekken/xs/types.rb
Instance Attribute Summary
Attributes inherited from BaseType
Instance Method Summary collapse
Methods inherited from BaseType
#[], #children, #collect_child_elements, #empty?, #initialize, #inspect
Constructor Details
This class inherits a constructor from Sekken::XS::BaseType
Instance Method Details
#attributes ⇒ Object
192 |
# File 'lib/sekken/xs/types.rb', line 192 alias_method :attributes, :collect_attributes |
#collect_attributes(memo = []) ⇒ Object
194 195 196 197 198 199 200 201 202 203 204 |
# File 'lib/sekken/xs/types.rb', line 194 def collect_attributes(memo = []) if @node['ref'] local, nsid = @node['ref'].split(':').reverse namespace = @node.namespaces["xmlns:#{nsid}"] attribute_group = @schemas.attribute_group(namespace, local) memo += attribute_group.attributes else super end end |