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.



1340
1341
1342
# File 'lib/magic_xml.rb', line 1340

def initialize(c)
    @c = c
end

Instance Method Details

#to_sObject



1343
1344
1345
# File 'lib/magic_xml.rb', line 1343

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