Module: FileFetch

Included in:
Wikisys::Wiki
Defined in:
lib/wikisys.rb

Instance Method Summary collapse

Instance Method Details

#fetch_file(filename) ⇒ Object



20
21
22
23
24
# File 'lib/wikisys.rb', line 20

def fetch_file(filename)

  filepath = fetch_filepath filename
  read filepath
end

#fetch_filepath(filename) ⇒ Object



13
14
15
16
17
18
# File 'lib/wikisys.rb', line 13

def fetch_filepath(filename)

  lib = File.dirname(__FILE__)    
  File.join(lib,'..','stylesheet',filename)

end

#read(s) ⇒ Object



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

def read(s)
  RXFHelper.read(s).first
end