Class: Arrow::Template::UnlessDirective

Inherits:
BracketingDirective show all
Includes:
ConditionalDirective
Defined in:
lib/arrow/template/unless.rb

Overview

The Arrow::Template::UnlessDirective class, a derivative of Arrow::Template::BracketingDirective. Instances of this class represent a section of a template that is rendered conditionally.

The formats the directive supports are:

<?unless <name>?>...<?end unless?>
<?unless <name>.<methodchain>?>...<?end unless?>
<?unless <name> (matches|=~) <regex>?>...<?end unless?>
<?unless <name>.<methodchain> (matches|=~) <regex>?>...<?end unless?>

Note that this directive does not support all possible Ruby expressions in the conditional, and must have a valid associated identifier (the name bit).

Authors

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

Constant Summary

Constants included from ConditionalDirective

ConditionalDirective::SVNId, ConditionalDirective::SVNRev

Constants inherited from BracketingDirective

BracketingDirective::SVNId, BracketingDirective::SVNRev

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 BracketingDirective

#subnodes

Attributes inherited from AttributeDirective

#format, #methodchain, #name

Attributes inherited from Node

#type

Method Summary

Methods included from ConditionalDirective

#evaluate, #is_rendering_node?

Methods inherited from BracketingDirective

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

Methods inherited from AttributeDirective

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

Methods inherited from Directive

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

Methods inherited from Node

#add_to_template, #initialize, #inspect, #is_rendering_node?, #render, #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::BracketingDirective