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.
1326 1327 1328 1329 |
# File 'lib/magic_xml.rb', line 1326 def initialize(c, t) @c = c @t = t end |
Instance Method Details
#to_s ⇒ Object
1330 1331 1332 |
# File 'lib/magic_xml.rb', line 1330 def to_s "<?#{@c}#{@t}?>" end |