Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v1.0.0) is shown here.
instruct!(directive_tag=:xml, attrs={})
public
Insert a processing instruction into the XML markup. E.g.
For example:
xml.instruct!
xml.instruct! :aaa, :bbb=>"ccc"
# File actionpack/lib/action_view/vendor/builder/xmlmarkup.rb, line 228
def instruct!(directive_tag=:xml, attrs={})
_ensure_no_block block_given?
if directive_tag == :xml
a = { :version=>"1.0", :encoding=>"UTF-8" }
attrs = a.merge attrs
end
_special(
"<?#{directive_tag}",
"?>",
nil,
attrs,
[:version, :encoding, :standalone])
end