Class: WikiChunk::WikiReference

Inherits:
Chunk::Abstract show all
Defined in:
app/models/chunks/wiki.rb

Overview

A wiki reference is the top-level class for anything that refers to another wiki page.

Direct Known Subclasses

Include, WikiLink

Instance Attribute Summary collapse

Attributes inherited from Chunk::Abstract

#text, #unmask_mode, #unmask_text

Instance Method Summary collapse

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_nameObject (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

#refpageObject

the referenced page



18
19
20
# File 'app/models/chunks/wiki.rb', line 18

def refpage
  @content.web.pages[@page_name]
end