class Rwiki::Configuration

Attributes

page_file_extension[RW]
root_page_name[RW]
rwiki_path[RW]

Public Class Methods

new() click to toggle source
# File lib/rwiki/configuration.rb, line 11
def initialize
  @rwiki_path = Dir.pwd
  @root_page_name = 'Home'
  @page_file_extension = 'txt'
end

Public Instance Methods

root_page_full_file_path() click to toggle source
# File lib/rwiki/configuration.rb, line 25
def root_page_full_file_path
  root_page_full_path + '.' + page_file_extension
end
root_page_full_path() click to toggle source
# File lib/rwiki/configuration.rb, line 21
def root_page_full_path
  File.join(rwiki_path, root_page_path)
end
root_page_path() click to toggle source
# File lib/rwiki/configuration.rb, line 17
def root_page_path
  '/' + root_page_name
end
version() click to toggle source
# File lib/rwiki/configuration.rb, line 29
def version
  Rwiki::Version::STRING
end