Class: Wikiscript::Page

Inherits:
Object
  • Object
show all
Includes:
LogUtils::Logging
Defined in:
lib/wikiscript/page.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#textObject (readonly)

Returns the value of attribute text.



9
10
11
# File 'lib/wikiscript/page.rb', line 9

def text
  @text
end

#titleObject (readonly)

Returns the value of attribute title.



9
10
11
# File 'lib/wikiscript/page.rb', line 9

def title
  @title
end