Class: Arrow::Template::SelectListDirective
- Inherits:
-
BracketingDirective
- Object
- Object
- Node
- Directive
- AttributeDirective
- BracketingDirective
- Arrow::Template::SelectListDirective
- Includes:
- Parser::Patterns
- Defined in:
- lib/arrow/template/selectlist.rb
Overview
The Arrow::Template::SelectListDirective class, a derivative of Arrow::Template::AttributeDirective. This is the class which defines the behaviour of the ‘selectlist’ template directive.
Syntax
<?selectlist categories ?><?end?>
<?selectlist category FROM categories ?><?end?>
<?selectlist category FROM categories.sort_by {|c| c.name } ?><?end?>
VCS Id
$Id$
Authors
-
Michael Granger <[email protected]>
Please see the file LICENSE in the top-level directory for licensing details.
Constant Summary collapse
- SVNRev =
SVN Revision
%q$Rev$
- SVNId =
SVN Id
%q$Id$
- NAMEDLIST =
CAPTURE[ IDENTIFIER ] + /\s+from\s+/i
Constants included from Parser::Patterns
Parser::Patterns::ALTERNATION, Parser::Patterns::ARGDEFAULT, Parser::Patterns::ARGUMENT, Parser::Patterns::CAPTURE, Parser::Patterns::COMMA, Parser::Patterns::DBLQSTRING, Parser::Patterns::DOT, Parser::Patterns::EQUALS, Parser::Patterns::IDENTIFIER, Parser::Patterns::INFIX, Parser::Patterns::LBRACKET, Parser::Patterns::NUMBER, Parser::Patterns::PATHNAME, Parser::Patterns::QUOTEDSTRING, Parser::Patterns::RBRACKET, Parser::Patterns::REBINDOP, Parser::Patterns::REGEXP, Parser::Patterns::SLASHQSTRING, Parser::Patterns::SYMBOL, Parser::Patterns::TAGCLOSE, Parser::Patterns::TAGMIDDLE, Parser::Patterns::TAGOPEN, Parser::Patterns::TICKQSTRING, Parser::Patterns::VARIABLE, Parser::Patterns::WHITESPACE
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 collapse
-
#select_name ⇒ Object
readonly
Returns the value of attribute select_name.
Attributes inherited from BracketingDirective
Attributes inherited from AttributeDirective
Attributes inherited from Node
Class Method Summary collapse
-
.allows_format? ⇒ Boolean
This directive doesn’t allow formatting.
Instance Method Summary collapse
-
#initialize(body, parser, state) ⇒ SelectListDirective
constructor
Create a new Arrow::Template::SelectListDirective object.
Methods inherited from BracketingDirective
#add_to_template, #inspect, #is_rendering_node?, #to_a, #to_html
Methods inherited from AttributeDirective
#before_rendering, #inspect, #is_rendering_node?, #render, #to_html
Methods inherited from Directive
create, derivativeDirs, #inspect, #render, #to_html
Methods inherited from Node
#add_to_template, #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
#initialize(body, parser, state) ⇒ SelectListDirective
Create a new Arrow::Template::SelectListDirective object.
46 47 48 49 |
# File 'lib/arrow/template/selectlist.rb', line 46 def initialize( body, parser, state ) @select_name = nil super end |
Instance Attribute Details
#select_name ⇒ Object (readonly)
Returns the value of attribute select_name.
56 57 58 |
# File 'lib/arrow/template/selectlist.rb', line 56 def select_name @select_name end |
Class Method Details
.allows_format? ⇒ Boolean
This directive doesn’t allow formatting.
40 41 42 |
# File 'lib/arrow/template/selectlist.rb', line 40 def self::allows_format? false end |