This method is deprecated or moved on the latest stable version.
The last existing version (v1.0.0) is shown here.
_insert_attributes(attrs, order=[])
private
Insert the attributes (given in the hash).
# File actionpack/lib/action_view/vendor/builder/xmlmarkup.rb, line 288
def _insert_attributes(attrs, order=[])
return if attrs.nil?
order.each do |k|
v = attrs[k]
@target << %{ #{k}="#{v}"} if v
end
attrs.each do |k, v|
@target << %{ #{k}="#{v}"} unless order.member?(k)
end
end