Class: Scrape::DefaultLoader
- Inherits:
-
Object
- Object
- Scrape::DefaultLoader
- Defined in:
- lib/scrape/default_loader.rb
Defined Under Namespace
Classes: Sandbox
Instance Method Summary collapse
Instance Method Details
permalink #load(path) ⇒ Object
[View source]
2 3 4 5 6 7 8 9 10 |
# File 'lib/scrape/default_loader.rb', line 2 def load path path = File. path sites = {} sandbox = Sandbox.new sites sandbox.instance_eval File.read(path), path sites end |