Class: XML_PI
- Inherits:
-
Object
- Object
- XML_PI
- 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
-
#initialize(c, t) ⇒ XML_PI
constructor
A new instance of XML_PI.
- #to_s ⇒ Object
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_s ⇒ Object
1308 1309 1310 |
# File 'lib/magic_xml.rb', line 1308 def to_s "<?#{@c}#{@t}?>" end |