Method: REXML::DocType#attributes_of

Defined in:
lib/extensions/rexml/rexml/doctype.rb

#attributes_of(element) ⇒ Object



74
75
76
77
78
79
80
81
82
# File 'lib/extensions/rexml/rexml/doctype.rb', line 74

def attributes_of element
  rv = []
  each do |child|
    child.each do |key,val|
      rv << Attribute.new(key,val)
    end if child.kind_of?( AttlistDecl ) and child.element_name == element
  end
  rv
end