Method: Nitro::XmlHelper#processing_instruction!
- Defined in:
- lib/nitro/helper/xml.rb
#processing_instruction!(name, attributes = nil) ⇒ Object Also known as: pi!
Emit a processing instruction.
85 86 87 88 89 90 91 92 93 94 95 |
# File 'lib/nitro/helper/xml.rb', line 85 def processing_instruction!(name, attributes = nil) unless attributes self << "<?#{name} ?>" else self << "<?#{name} " attributes.each do |a, v| self << %[#{a}="#{v}" ] end self << "?>" end end |