Class: XML_Comment

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

  • There are some limitations on where one can put -s in the comment. Do not overdo.

Instance Method Summary collapse

Constructor Details

#initialize(c) ⇒ XML_Comment

Returns a new instance of XML_Comment.



1318
1319
1320
# File 'lib/magic_xml.rb', line 1318

def initialize(c)
    @c = c
end

Instance Method Details

#to_sObject



1321
1322
1323
# File 'lib/magic_xml.rb', line 1321

def to_s
    "<!--#{@c}-->"
end