Class: Wiki2Go::PageContext
- Inherits:
-
Object
- Object
- Wiki2Go::PageContext
- Defined in:
- lib/Wiki2Go/WikiFormatter.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#format ⇒ Object
readonly
Returns the value of attribute format.
-
#from ⇒ Object
readonly
Returns the value of attribute from.
-
#page ⇒ Object
readonly
Returns the value of attribute page.
-
#pages ⇒ Object
readonly
Returns the value of attribute pages.
-
#searchtopic ⇒ Object
readonly
Returns the value of attribute searchtopic.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
-
#title ⇒ Object
Returns the value of attribute title.
-
#to ⇒ Object
readonly
Returns the value of attribute to.
-
#web ⇒ Object
readonly
Returns the value of attribute web.
Instance Method Summary collapse
-
#initialize(config, formatter, text, page, web, pages, searchtopic, title) ⇒ PageContext
constructor
A new instance of PageContext.
- #versions(from, to) ⇒ Object
Constructor Details
#initialize(config, formatter, text, page, web, pages, searchtopic, title) ⇒ PageContext
Returns a new instance of PageContext.
23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/Wiki2Go/WikiFormatter.rb', line 23 def initialize(config,formatter,text,page,web,pages,searchtopic,title) @config = config @format = formatter @web = web @page = page @text = text @pages = pages @searchtopic = searchtopic @title = title @from = -1 @to = -1 end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
18 19 20 |
# File 'lib/Wiki2Go/WikiFormatter.rb', line 18 def config @config end |
#format ⇒ Object (readonly)
Returns the value of attribute format.
12 13 14 |
# File 'lib/Wiki2Go/WikiFormatter.rb', line 12 def format @format end |
#from ⇒ Object (readonly)
Returns the value of attribute from.
20 21 22 |
# File 'lib/Wiki2Go/WikiFormatter.rb', line 20 def from @from end |
#page ⇒ Object (readonly)
Returns the value of attribute page.
14 15 16 |
# File 'lib/Wiki2Go/WikiFormatter.rb', line 14 def page @page end |
#pages ⇒ Object (readonly)
Returns the value of attribute pages.
16 17 18 |
# File 'lib/Wiki2Go/WikiFormatter.rb', line 16 def pages @pages end |
#searchtopic ⇒ Object (readonly)
Returns the value of attribute searchtopic.
17 18 19 |
# File 'lib/Wiki2Go/WikiFormatter.rb', line 17 def searchtopic @searchtopic end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
15 16 17 |
# File 'lib/Wiki2Go/WikiFormatter.rb', line 15 def text @text end |
#title ⇒ Object
Returns the value of attribute title.
19 20 21 |
# File 'lib/Wiki2Go/WikiFormatter.rb', line 19 def title @title end |
#to ⇒ Object (readonly)
Returns the value of attribute to.
21 22 23 |
# File 'lib/Wiki2Go/WikiFormatter.rb', line 21 def to @to end |
#web ⇒ Object (readonly)
Returns the value of attribute web.
13 14 15 |
# File 'lib/Wiki2Go/WikiFormatter.rb', line 13 def web @web end |
Instance Method Details
#versions(from, to) ⇒ Object
36 37 38 39 40 41 42 43 44 |
# File 'lib/Wiki2Go/WikiFormatter.rb', line 36 def versions(from,to) if to > 0 then @to = to @from = from else @from = -1 @to = -1 end end |