class Sekken::XS::AttributeGroup

Public Instance Methods

attributes(memo = [])
Alias for: collect_attributes
collect_attributes(memo = []) click to toggle source
Calls superclass method Sekken::XS::BaseType#collect_attributes
# 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
Also aliased as: attributes