Class: WebRobots::RobotsTxt::AgentLine
- Inherits:
-
Line
- Object
- Line
- WebRobots::RobotsTxt::AgentLine
- Defined in:
- lib/webrobots/robotstxt.rb
Instance Attribute Summary (collapse)
-
- (Object) pattern
readonly
Returns the value of attribute pattern.
Attributes inherited from Line
Instance Method Summary (collapse)
Methods inherited from Line
Constructor Details
This class inherits a constructor from WebRobots::RobotsTxt::Line
Instance Attribute Details
- (Object) pattern (readonly)
Returns the value of attribute pattern
670 671 672 |
# File 'lib/webrobots/robotstxt.rb', line 670 def pattern @pattern end |
Instance Method Details
- (Object) compile
661 662 663 664 665 666 667 668 |
# File 'lib/webrobots/robotstxt.rb', line 661 def compile if @value == '*' @pattern = // else @pattern = Regexp.new(Regexp.quote(@value), Regexp::IGNORECASE) end self end |