Class: XML_PI

Inherits:
Object
  • Object
show all
Defined in:
lib/magic_xml.rb

Overview

FIXME: Is this even sane ?

  • What about escaping and all that stuff ?

  • Rest of the code assumes that everything is either XML or String

Instance Method Summary collapse

Constructor Details

#initialize(c, t) ⇒ XML_PI

Returns a new instance of XML_PI.



1296
1297
1298
1299
# File 'lib/magic_xml.rb', line 1296

def initialize(c, t)
  @c = c
  @t = t
end

Instance Method Details

#to_sObject



1300
1301
1302
# File 'lib/magic_xml.rb', line 1300

def to_s
  "<?#{@c}#{@t}?>"
end