Method: Scrape::DefaultLoader#load

Defined in:
lib/scrape/default_loader.rb

#load(path) ⇒ Object



2
3
4
5
6
7
8
9
10
# File 'lib/scrape/default_loader.rb', line 2

def load path
  path = File.expand_path path
  sites = {}

  sandbox = Sandbox.new sites
  sandbox.instance_eval File.read(path), path

  sites
end