instance method
_insert_attributes
Ruby on Rails 2.3.18
Since v2.2.3 Last seen in v2.3.18 PrivateAvailable in: v2.2.3 v2.3.18
Signature
_insert_attributes(attrs, order=[])
Insert the attributes (given in the hash).
Parameters
-
attrsreq -
orderopt = []
Source
# File activesupport/lib/active_support/vendor/builder-2.1.2/builder/xmlmarkup.rb, line 299
def _insert_attributes(attrs, order=[])
return if attrs.nil?
order.each do |k|
v = attrs[k]
@target << %{ #{k}="#{_attr_value(v)}"} if v # " WART
end
attrs.each do |k, v|
@target << %{ #{k}="#{_attr_value(v)}"} unless order.member?(k) # " WART
end
end
Defined in activesupport/lib/active_support/vendor/builder-2.1.2/builder/xmlmarkup.rb line 299
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Builder::XmlMarkup