Class: Infoboxer::Tree::Var
- Defined in:
- lib/infoboxer/tree/template.rb
Overview
Template variable.
It's basically the thing with name and ANY nodes inside, can be seen only as a direct child of Template.
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from Compound
Attributes inherited from Node
Instance Method Summary collapse
-
#empty? ⇒ Boolean
Internal, used by Parser.
-
#initialize(name, children = Nodes[]) ⇒ Var
constructor
A new instance of Var.
Methods inherited from Compound
Methods inherited from Node
#==, #children, coder, def_readers, #index, #inspect, #next_siblings, #prev_siblings, #siblings, #text, #text_, #to_s, #to_tree
Methods included from Navigation::Sections::Node
Methods included from Navigation::Shortcuts::Node
#bold?, #categories, #external_links, #heading?, #headings, #images, #infobox, #infoboxes, #italic?, #lists, #paragraphs, #tables, #templates, #wikilinks
Methods included from Navigation::Lookup::Node
#_lookup, #_lookup_children, #_lookup_next_siblings, #_lookup_parents, #_lookup_prev_siblings, #_lookup_siblings, #_matches?, #has_parent?, #lookup, #lookup_children, #lookup_next_siblings, #lookup_parents, #lookup_prev_siblings, #lookup_siblings, #matches?
Constructor Details
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
11 12 13 |
# File 'lib/infoboxer/tree/template.rb', line 11 def name @name end |
Instance Method Details
#empty? ⇒ Boolean
Internal, used by Parser
19 20 21 |
# File 'lib/infoboxer/tree/template.rb', line 19 def empty? false end |