Class: Infoboxer::Templates::Base
- Inherits:
-
Infoboxer::Tree::Template
- Object
- Infoboxer::Tree::Node
- Infoboxer::Tree::Compound
- Infoboxer::Tree::Template
- Infoboxer::Templates::Base
- Includes:
- Infoboxer::Tree
- Defined in:
- lib/infoboxer/templates/base.rb
Class Attribute Summary collapse
-
.template_name ⇒ Object
Returns the value of attribute template_name.
-
.template_options ⇒ Object
Returns the value of attribute template_options.
Attributes inherited from Infoboxer::Tree::Template
Attributes inherited from Infoboxer::Tree::Compound
Attributes inherited from Infoboxer::Tree::Node
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Infoboxer::Tree::Template
#fetch, #fetch_date, #fetch_hash, #follow, #initialize, #link, #named_variables, #text, #to_h, #to_tree, #unnamed_variables, #unwrap
Methods included from Infoboxer::Tree::Linkable
Methods inherited from Infoboxer::Tree::Compound
#index_of, #initialize, #text, #to_tree
Methods inherited from Infoboxer::Tree::Node
#children, coder, def_readers, #first?, #index, #initialize, #inspect, #next_siblings, #prev_siblings, #siblings, #text, #text_, #to_s, #to_tree
Methods included from Navigation::Wikipath
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_sibling, #_lookup_prev_siblings, #_lookup_siblings, #_matches?, #lookup, #lookup_children, #lookup_next_siblings, #lookup_parents, #lookup_prev_sibling, #lookup_prev_siblings, #lookup_siblings, #matches?, #parent?
Constructor Details
This class inherits a constructor from Infoboxer::Tree::Template
Class Attribute Details
.template_name ⇒ Object
Returns the value of attribute template_name.
9 10 11 |
# File 'lib/infoboxer/templates/base.rb', line 9 def template_name @template_name end |
.template_options ⇒ Object
Returns the value of attribute template_options.
9 10 11 |
# File 'lib/infoboxer/templates/base.rb', line 9 def @template_options end |
Class Method Details
.clean_name ⇒ Object
15 16 17 |
# File 'lib/infoboxer/templates/base.rb', line 15 def clean_name template_name ? "Template[#{template_name}]" : 'Template' end |
.inspect ⇒ Object
11 12 13 |
# File 'lib/infoboxer/templates/base.rb', line 11 def inspect template_name ? "Infoboxer::Templates::#{clean_name}" : super end |