Class: Arrow::Template::CommentDirective

Inherits:
AttributeDirective show all
Defined in:
lib/arrow/template/comment.rb

Overview

The Arrow::Template::Comment class, a derivative of Arrow::Template::AttributeDirective. This is the class which defines the behaviour of the ‘comment’ template directive.

VCS Id

$Id$

Authors

Please see the file LICENSE in the top-level directory for licensing details.

Constant Summary

Constants inherited from AttributeDirective

AttributeDirective::SVNId, AttributeDirective::SVNRev

Constants inherited from Directive

Directive::SVNId, Directive::SVNRev

Constants inherited from Node

Node::SVNId, Node::SVNRev

Constants included from HTMLUtilities

HTMLUtilities::ARRAY_HTML_CONTAINER, HTMLUtilities::HASH_HTML_CONTAINER, HTMLUtilities::HASH_PAIR_HTML, HTMLUtilities::IMMEDIATE_OBJECT_HTML_CONTAINER, HTMLUtilities::IVAR_HTML_FRAGMENT, HTMLUtilities::OBJECT_HTML_CONTAINER, HTMLUtilities::THREAD_DUMP_KEY

Instance Attribute Summary

Attributes inherited from AttributeDirective

#format, #methodchain, #name

Attributes inherited from Node

#type

Instance Method Summary collapse

Methods inherited from AttributeDirective

allows_format?, #before_rendering, #initialize, #inspect, #is_rendering_node?, #to_html

Methods inherited from Directive

create, derivativeDirs, #initialize, #inspect, #to_html

Methods inherited from Node

#add_to_template, #initialize, #inspect, #is_rendering_node?, #to_a, #to_html, #to_s

Methods included from HTMLUtilities

escape_html, make_html_for_object, make_object_html_wrapper

Methods inherited from Object

deprecate_class_method, deprecate_method, inherited

Constructor Details

This class inherits a constructor from Arrow::Template::AttributeDirective

Instance Method Details

#render(template, scope) ⇒ Object

Return an empty string instead of rendering anything within a comment directive.



29
30
31
# File 'lib/arrow/template/comment.rb', line 29

def render( template, scope )
	return ''
end