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.



1304
1305
1306
1307
# File 'lib/magic_xml.rb', line 1304

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

Instance Method Details

#to_sObject



1308
1309
1310
# File 'lib/magic_xml.rb', line 1308

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