Class: XML_Comment
- Inherits:
-
Object
- Object
- XML_Comment
- 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
-
#initialize(c) ⇒ XML_Comment
constructor
A new instance of XML_Comment.
- #to_s ⇒ Object
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_s ⇒ Object
1343 1344 1345 |
# File 'lib/magic_xml.rb', line 1343 def to_s "<!--#{@c}-->" end |