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.



1326
1327
1328
1329
# File 'lib/magic_xml.rb', line 1326

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

Instance Method Details

#to_sObject



1330
1331
1332
# File 'lib/magic_xml.rb', line 1330

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