Class: WebRobots::RobotsTxt::AgentLine

### Home Classes Methods

### In Files

- lib/webrobots/robotstxt.rb

### Parent

WebRobots::RobotsTxt::Line

### Methods

- #compile

### Files

- LICENSE.txt
- README.rdoc

### Class/Module Index

Quicksearch

- WebRobots
- WebRobots::Error
- WebRobots::ParseError
- WebRobots::RobotsTxt
- WebRobots::RobotsTxt::AccessControlLine
- WebRobots::RobotsTxt::AgentLine
- WebRobots::RobotsTxt::AllowLine
- WebRobots::RobotsTxt::CrawlDelayLine
- WebRobots::RobotsTxt::DisallowLine
- WebRobots::RobotsTxt::ExtentionLine
- WebRobots::RobotsTxt::Line
- WebRobots::RobotsTxt::Parser
- WebRobots::RobotsTxt::Record
- Nokogiri
- Nokogiri::HTML
- Nokogiri::HTML::Document
- Webrobots

No matching classes.

# WebRobots::RobotsTxt::AgentLine

### Attributes

pattern[R]

### Public Instance Methods

compile() click to toggle source

    # File lib/webrobots/robotstxt.rb, line 674
    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.