Class: WebRobots::RobotsTxt::Line
- Inherits:
-
Object
- Object
- WebRobots::RobotsTxt::Line
- Defined in:
- lib/webrobots/robotstxt.rb
Direct Known Subclasses
Instance Attribute Summary (collapse)
-
- (Object) token
readonly
Returns the value of attribute token.
-
- (Object) value
readonly
Returns the value of attribute value.
Instance Method Summary (collapse)
- - (Object) compile
-
- (Line) initialize(token, value)
constructor
A new instance of Line.
Constructor Details
- (Line) initialize(token, value)
A new instance of Line
647 648 649 650 651 |
# File 'lib/webrobots/robotstxt.rb', line 647 def initialize(token, value) @token = token @value = value compile end |
Instance Attribute Details
- (Object) token (readonly)
Returns the value of attribute token
653 654 655 |
# File 'lib/webrobots/robotstxt.rb', line 653 def token @token end |
- (Object) value (readonly)
Returns the value of attribute value
653 654 655 |
# File 'lib/webrobots/robotstxt.rb', line 653 def value @value end |
Instance Method Details
- (Object) compile
655 656 657 |
# File 'lib/webrobots/robotstxt.rb', line 655 def compile self end |