Module: Library

Included in:
Omah
Defined in:
lib/omah.rb

Instance Method Summary collapse

Instance Method Details

#fetch_file(filename) ⇒ Object



12
13
14
15
16
17
18
19
# File 'lib/omah.rb', line 12

def fetch_file(filename)

  #lib = File.dirname(__FILE__)
  #File.read filename
  lib = 'http://a0.jamesrobertson.me.uk/rorb/r/ruby/omah/'
  URI.open(File.join(lib, filename),
    'UserAgent' => 'Omah'){|x| x.read }
end