Class: Wiki2Go::LocalConfig

Inherits:
PublicWikiConfig show all
Defined in:
lib/Wiki2Go/Server.rb

Instance Attribute Summary

Attributes inherited from Config

#allow_dynamic_pages, #amazon_affiliate, #blacklist_when_no_checksum, #blog_style, #checksum_required, #checksum_salt, #debug, #default_page, #default_web, #delete_spam, #editor, #generate_html, #group, #maximum_urls, #multi_wiki, #pages_in_recent_changes, #pages_in_rss, #port, #root_directory, #server, #site_admin, #site_directory, #subsite, #user

Instance Method Summary collapse

Methods inherited from PublicWikiConfig

#accept_page?, #accept_user?, #blacklist_user, #editable?, #tarpit, #use_akismet

Methods inherited from Config

#accept_edit?, #accept_page?, #accept_user?, #add_processor, #banned_urls, #banned_users, #blacklist_user, #chonqed_urls, #close, #commit_to_repository, #default_wiki, #editable?, #enable_dot_graphics, #enable_syntax_highlighting, #errorlog, #greylist, #instant_commit_to_repository, #log, #logfile, #logger, #preprocess, #redirect_to_html?, #save, #static_web, #storage, #update_from_repository, #use_repository

Constructor Details

#initialize(dir) ⇒ LocalConfig

Returns a new instance of LocalConfig.


22
23
24
25
26
27
28
29
30
# File 'lib/Wiki2Go/Server.rb', line 22

def initialize(dir)
  super(dir)
  @generate_html = false
  @multi_wiki    = true
  @debug         = true
  @editor        = 'wikiedit'
  add_processor('GRAPH',Wiki2Go::DotGraphics.new('c:/Program Files/ATT/Graphviz/bin/'))
  enable_syntax_highlighting
end

Instance Method Details

#redirect_url?(web, url) ⇒ Boolean

Returns:

  • (Boolean)

32
33
34
35
# File 'lib/Wiki2Go/Server.rb', line 32

def redirect_url?(web,url)
  result = super(web,url)
  return result
end