Class: WikiChunk::WikiReference
- Inherits:
-
Chunk::Abstract
- Object
- Chunk::Abstract
- WikiChunk::WikiReference
- Defined in:
- app/models/chunks/wiki.rb
Overview
A wiki reference is the top-level class for anything that refers to another wiki page.
Instance Attribute Summary collapse
-
#page_name ⇒ Object
readonly
Name of the referenced page.
Attributes inherited from Chunk::Abstract
#text, #unmask_mode, #unmask_text
Instance Method Summary collapse
-
#refpage ⇒ Object
the referenced page.
Methods inherited from Chunk::Abstract
apply_to, #escaped?, #id, inherited, #initialize, #mask, mask_re, mask_string, #rendered?, #revert, #unmask
Constructor Details
This class inherits a constructor from Chunk::Abstract
Instance Attribute Details
#page_name ⇒ Object (readonly)
Name of the referenced page
15 16 17 |
# File 'app/models/chunks/wiki.rb', line 15 def page_name @page_name end |
Instance Method Details
#refpage ⇒ Object
the referenced page
18 19 20 |
# File 'app/models/chunks/wiki.rb', line 18 def refpage @content.web.pages[@page_name] end |