Class: Infoboxer::Tree::Ref

Inherits:
Compound show all
Defined in:
lib/infoboxer/tree/ref.rb

Overview

Represents footnote.

Is not rendered in text flow, so, wikitext like

...pushed it back into underdevelopment,<ref>...tons of footnote text...</ref> though it
nevertheless...

when parsed and Node#text called, will return text like:

...pushed it back into underdevelopment, though it nevertheless...

...which most times is most reasonable thing to do.

Instance Attribute Summary collapse

Attributes inherited from Compound

#children

Attributes inherited from Node

#params, #parent

Instance Method Summary collapse

Methods inherited from Compound

#index_of, #initialize, #to_tree

Methods inherited from Node

#==, #children, coder, def_readers, #first?, #index, #initialize, #inspect, #next_siblings, #prev_siblings, #siblings, #text_, #to_s, #to_tree

Methods included from Navigation::Wikipath

#wikipath

Methods included from Navigation::Sections::Node

#in_sections

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::Compound

Instance Attribute Details

#nameObject (readonly)



20
# File 'lib/infoboxer/tree/ref.rb', line 20

def_readers :name

Instance Method Details

#textObject



29
30
31
32
33
# File 'lib/infoboxer/tree/ref.rb', line 29

def text
  # because we want "clean" text,
  # without references & footnotes messed up in it
  ''
end