Sha256: 042a1d548a70b9fb7a8f61402cb174f3a7e149c3d1c9243f016e7f21903d58d9
Contents?: true
Size: 1.08 KB
Versions: 1
Compression:
Stored size: 1.08 KB
Contents
require 'spidr/settings/proxy' require 'spidr/settings/timeouts' require 'spidr/settings/user_agent' require 'spidr/agent' module Spidr extend Settings::Proxy extend Settings::Timeouts extend Settings::UserAgent # # Specifies whether `robots.txt` should be honored globally. # # @return [Boolean] # # @since 0.5.0 # def self.robots? @robots ||= false @robots end # # Enables or disables `robots.txt` globally. # # @param [Boolean] mode # # @return [Boolean] # # @since 0.5.0 # def self.robots=(mode) @robots = mode end # # @see Agent.start_at # def self.start_at(url,**kwargs,&block) Agent.start_at(url,**kwargs,&block) end # # @see Agent.host # def self.host(name,**kwargs,&block) Agent.host(name,**kwargs,&block) end # # @see Agent.domain # # @since 0.7.0 # def self.domain(name,options={},&block) Agent.domain(name,options,&block) end # # @see Agent.site # def self.site(url,**kwargs,&block) Agent.site(url,**kwargs,&block) end # # @abstract # def self.robots end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spidr-0.7.0 | lib/spidr/spidr.rb |