Class: Wikiscript::Page
- Inherits:
-
Object
- Object
- Wikiscript::Page
- Includes:
- LogUtils::Logging
- Defined in:
- lib/wikiscript/page.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
Returns the value of attribute text.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(title) ⇒ Page
constructor
A new instance of Page.
Constructor Details
#initialize(title) ⇒ Page
Returns a new instance of Page.
11 12 13 14 15 16 17 18 |
# File 'lib/wikiscript/page.rb', line 11 def initialize( title ) ## todo: check title ## replace title spaces w/ _ ???? ## to allow "pretty" titles - why? why not?? @title = title @text = nil end |
Instance Attribute Details
#text ⇒ Object (readonly)
Returns the value of attribute text.
9 10 11 |
# File 'lib/wikiscript/page.rb', line 9 def text @text end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
9 10 11 |
# File 'lib/wikiscript/page.rb', line 9 def title @title end |