Module: Spidy
- Extended by:
- ActiveSupport::Autoload
- Defined in:
- lib/spidy.rb,
lib/spidy/version.rb
Overview
web spider dsl engine
Defined Under Namespace
Modules: Binder, Connector, Definition Classes: CommandLine, Console, DefinitionFile, DefinitionObject, Shell, Spider
Constant Summary collapse
- VERSION =
'1.0.0'.freeze
Class Method Summary collapse
Class Method Details
.define ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/spidy.rb', line 30 def self.define(&) spidy = Module.new do class_eval do extend ::Spidy::Definition module_eval(&) end end spidy.instance_eval do undef :spider undef :define undef :wait_time undef :user_agent undef :socks_proxy end spidy end |
.open(filepath) ⇒ Object
26 27 28 |
# File 'lib/spidy.rb', line 26 def self.open(filepath) Spidy::DefinitionFile.open(filepath).spidy end |