Inversion text node class -- container for static content in templates between tags.
Create a new TextNode with the specified source.
# File lib/inversion/template/textnode.rb, line 11 def initialize( body, linenum=nil, colnum=nil ) @body = body super end
Render the text node as the body of a comment.
# File lib/inversion/template/textnode.rb, line 35 def as_comment_body comment_body = self.body[0,40].dump comment_body[-1,0] = '...' unless comment_body == self.body.dump return "Text (%d bytes): %s" % [ self.body.length, comment_body ] end
Generated with the Darkfish Rdoc Generator 2.