Module: Spidy
- Extended by:
- ActiveSupport::Autoload
- Defined in:
- lib/spidy.rb,
lib/spidy/version.rb
Overview
Defined Under Namespace
Modules: Binder, Connector, Definition
Classes: CommandLine, Console, DefinitionFile, Shell, Spider
Constant Summary
collapse
- VERSION =
'0.3.0'
Class Method Summary
collapse
Class Method Details
.define(&block) ⇒ Object
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# File 'lib/spidy.rb', line 31
def self.define(&block)
spidy = Module.new do
class_eval do
extend ::Spidy::Definition
module_eval(&block)
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
27
28
29
|
# File 'lib/spidy.rb', line 27
def self.open(filepath)
Spidy::DefinitionFile.open(filepath).spidy
end
|
.shell(filepath = nil) ⇒ Object
23
24
25
|
# File 'lib/spidy.rb', line 23
def self.shell(filepath = nil)
Spidy::Shell.new(filepath)
end
|