Module: FileFetch

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

Instance Method Summary collapse

Instance Method Details

#fetch_file(filename) ⇒ Object



22
23
24
25
26
# File 'lib/wikisys.rb', line 22

def fetch_file(filename)

  filepath = fetch_filepath filename
  read filepath
end

#fetch_filepath(filename) ⇒ Object



15
16
17
18
19
20
# File 'lib/wikisys.rb', line 15

def fetch_filepath(filename)

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

end

#read(s) ⇒ Object



28
29
30
# File 'lib/wikisys.rb', line 28

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