Introducing the Requestor gem

require 'requestor'

code = Requestor.read('http://rorbuilder.info/ruby/') do |x|
  x.require 'helloworld'
end

eval code

HelloWorld.new
#=> hello world

The Requestor gem loads ruby source code from the web instead of from the local file system.

Resources

update: 17-Feb-2011 @ 8:57pm The url can also point to a dynarex file containing links to ruby files. The schema for the dynarex file is 'files/file(name,url)'. The summary node must include ruby_files

Tags:
Source:
1829hrs.txt
Published:
28-03-2014 18:29