Methods

WebRobots::RobotsTxt::CrawlDelayLine

Attributes

delay[R]

Public Instance Methods

compile() click to toggle source
     # File lib/webrobots/robotstxt.rb, line 723
723:       def compile
724:         case @value
725:         when /\A((0|[1-9][0-9]*)\.[0-9]+)/
726:           @delay = @value.to_f
727:         when /\A(0|[1-9][0-9]*)/
728:           @delay = @value.to_i
729:         else
730:           @delay = nil
731:         end
732:         self
733:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.