Class MediaWikiParams
In: lib/mediacloth/mediawikiparams.rb
Parent: Object

MediaWiki parser parameter handler object.

Stores and gives access to various parser settings and parser environment variables.

Methods

new   time   time=  

Included Modules

Singleton

Attributes

author  [RW]  The name of the wiki page author

Public Class methods

[Source]

    # File lib/mediacloth/mediawikiparams.rb, line 15
15:     def initialize
16:         @author = "Creator"
17:     end

Public Instance methods

Creation time of the page. Use overrideTime method to override the value (useful for testing purposes).

[Source]

    # File lib/mediacloth/mediawikiparams.rb, line 21
21:     def time
22:         if @time
23:             return @time
24:         else
25:             return Time.now
26:         end
27:     end

[Source]

    # File lib/mediacloth/mediawikiparams.rb, line 29
29:     def time=(t)
30:         @time = t
31:     end

[Validate]