Class: WebRobots::RobotsTxt::Line
- Inherits:
-
Object
- Object
- WebRobots::RobotsTxt::Line
- Defined in:
- lib/webrobots/robotstxt.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#token ⇒ Object
readonly
Returns the value of attribute token.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #compile ⇒ Object
-
#initialize(token, value) ⇒ Line
constructor
A new instance of Line.
Constructor Details
#initialize(token, value) ⇒ Line
Returns a new instance of Line.
660 661 662 663 664 |
# File 'lib/webrobots/robotstxt.rb', line 660 def initialize(token, value) @token = token @value = value compile end |
Instance Attribute Details
#token ⇒ Object (readonly)
Returns the value of attribute token.
666 667 668 |
# File 'lib/webrobots/robotstxt.rb', line 666 def token @token end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
666 667 668 |
# File 'lib/webrobots/robotstxt.rb', line 666 def value @value end |
Instance Method Details
#compile ⇒ Object
668 669 670 |
# File 'lib/webrobots/robotstxt.rb', line 668 def compile self end |