Sha256: 98ffc29d655798cc4a3bfac7e8e859ae1c81281ad410e84918057e38089a842f
Contents?: true
Size: 378 Bytes
Versions: 17
Compression:
Stored size: 378 Bytes
Contents
require 'rexml/formatters/pretty' class REXML::Formatters::OrderedAttributes < REXML::Formatters::Pretty 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 end
Version data entries
17 entries across 17 versions & 1 rubygems