class REXML::Formatters::OrderedAttributes

Public Instance Methods

write_element(elm, out) click to toggle source
Calls superclass method
# File lib/ruboto/core_ext/rexml.rb, line 4
def write_element(elm, out)
  att = elm.attributes

  class <<att
    alias _each_attribute each_attribute

    def each_attribute(&b)
      to_enum(:_each_attribute).sort_by { |x| [x.prefix, x.name] }.each(&b)
    end
  end

  super(elm, out)
end