Methods

WebRobots::RobotsTxt::AgentLine

Attributes

pattern[R]

Public Instance Methods

compile() click to toggle source
# File lib/webrobots/robotstxt.rb, line 663
def compile
  if @value == '*'
    @pattern = //
  else
    @pattern = Regexp.new(Regexp.quote(@value), Regexp::IGNORECASE)
  end
  self
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.