A comment node object class. Instances of this class are nodes in a syntax tree which represent the invisible markup useful for diagnosis or debugging.
Create a new Arrow::Template::TextNode object with the given body.
# File /Users/ged/source/ruby/Arrow/lib/arrow/template/nodes.rb, line 263 263: def initialize( body, type='comment' ) 264: super 265: end
--- SEC00154
--- ""
--- - methods: - visibility: public aref: M000476 name: new sourcecode: " <span class=\"ruby-comment cmt\"># File /Users/ged/source/ruby/Arrow/lib/arrow/template/nodes.rb, line 263</span>\n\ 263: <span class=\"ruby-keyword kw\">def</span> <span class=\"ruby-identifier\">initialize</span>( <span class=\"ruby-identifier\">body</span>, <span class=\"ruby-identifier\">type</span>=<span class=\"ruby-value str\">'comment'</span> )\n\ 264: <span class=\"ruby-keyword kw\">super</span>\n\ 265: <span class=\"ruby-keyword kw\">end</span>" m_desc: |- <p> Create a <a href="CommentNode.html#M000476">new</a> Arrow::Template::TextNode object with the given <tt>body</tt>. </p> params: ( body, type='comment' ) category: Class type: Public - methods: - visibility: public aref: M000477 name: render sourcecode: " <span class=\"ruby-comment cmt\"># File /Users/ged/source/ruby/Arrow/lib/arrow/template/nodes.rb, line 273</span>\n\ 273: <span class=\"ruby-keyword kw\">def</span> <span class=\"ruby-identifier\">render</span>( <span class=\"ruby-identifier\">template</span>, <span class=\"ruby-identifier\">scope</span> )\n\ 274: [ <span class=\"ruby-identifier\">template</span>.<span class=\"ruby-identifier\">render_comment</span>( <span class=\"ruby-keyword kw\">self</span>.<span class=\"ruby-identifier\">to_s</span> ) ]\n\ 275: <span class=\"ruby-keyword kw\">end</span>" m_desc: |- <p> Render the comment in the context of the specified <tt>template</tt> and <tt>scope</tt>. </p> params: ( template, scope ) - visibility: public aref: M000478 name: to_html sourcecode: " <span class=\"ruby-comment cmt\"># File /Users/ged/source/ruby/Arrow/lib/arrow/template/nodes.rb, line 280</span>\n\ 280: <span class=\"ruby-keyword kw\">def</span> <span class=\"ruby-identifier\">to_html</span>\n\ 281: <span class=\"ruby-keyword kw\">super</span> { <span class=\"ruby-keyword kw\">self</span>.<span class=\"ruby-identifier\">escape_html</span>(<span class=\"ruby-keyword kw\">self</span>.<span class=\"ruby-identifier\">to_s</span>) }\n\ 282: <span class=\"ruby-keyword kw\">end</span>" m_desc: |- <p> Return an HTML fragment that can be used to represent the node symbolically in a web-based introspection interface. </p> params: () category: Instance type: Public
---
--- - name: SVNRev desc: |+ SVN Revision value: "%q$Rev: 437 $" - name: SVNId desc: |+ SVN Id value: "%q$Id: nodes.rb 437 2008-03-28 00:49:20Z deveiant $"
Generated with the Darkfish Rdoc Generator.