Class: Infoboxer::Templates::Replace
- Inherits:
-
Base
- Object
- Infoboxer::Tree::Node
- Infoboxer::Tree::Compound
- Infoboxer::Tree::Template
- Base
- Infoboxer::Templates::Replace
- Defined in:
- lib/infoboxer/templates/base.rb
Overview
Replaces template with replacement, while rendering.
Used for Set definitions.
Instance Attribute Summary
Attributes inherited from Infoboxer::Tree::Template
Attributes inherited from Infoboxer::Tree::Compound
Attributes inherited from Infoboxer::Tree::Node
Instance Method Summary collapse
Methods inherited from Base
Methods inherited from Infoboxer::Tree::Template
#fetch, #fetch_date, #fetch_hash, #follow, #initialize, #link, #to_h, #to_tree, #unnamed_variables
Methods included from Infoboxer::Tree::Linkable
Methods inherited from Infoboxer::Tree::Compound
#index_of, #initialize, #to_tree
Methods inherited from Infoboxer::Tree::Node
#==, #children, coder, def_readers, #index, #initialize, #inspect, #next_siblings, #prev_siblings, #siblings, #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
This class inherits a constructor from Infoboxer::Tree::Template
Instance Method Details
#replace ⇒ Object
51 52 53 |
# File 'lib/infoboxer/templates/base.rb', line 51 def replace fail(NotImplementedError, "Descendants should define :replace") end |
#text ⇒ Object
55 56 57 |
# File 'lib/infoboxer/templates/base.rb', line 55 def text replace end |