Module: Wikiscript

Defined in:
lib/wikiscript.rb,
lib/wikiscript/page.rb,
lib/wikiscript/client.rb,
lib/wikiscript/version.rb

Defined Under Namespace

Classes: Client, Page

Constant Summary collapse

VERSION =
'0.1.1'

Class Method Summary collapse

Class Method Details



26
27
28
# File 'lib/wikiscript.rb', line 26

def self.banner
  "wikiscript/#{VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]"
end

.langObject



40
41
42
43
# File 'lib/wikiscript.rb', line 40

def self.lang
  # note: for now always returns a string e.g. 'en', 'de' etc. not a symbol
  @@lang ||= 'en'
end

.lang=(value) ⇒ Object

for now make lang a global - change why? why not??



36
37
38
# File 'lib/wikiscript.rb', line 36

def self.lang=(value)
  @@lang = value.to_s     # use to_s - lets you pass ing :en, :de etc.
end

.rootObject



30
31
32
# File 'lib/wikiscript.rb', line 30

def self.root
  "#{File.expand_path( File.dirname(File.dirname(__FILE__)) )}"
end