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.
649 650 651 652 653 |
# File 'lib/webrobots/robotstxt.rb', line 649 def initialize(token, value) @token = token @value = value compile end |
Instance Attribute Details
#token ⇒ Object (readonly)
Returns the value of attribute token.
655 656 657 |
# File 'lib/webrobots/robotstxt.rb', line 655 def token @token end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
655 656 657 |
# File 'lib/webrobots/robotstxt.rb', line 655 def value @value end |
Instance Method Details
#compile ⇒ Object
657 658 659 |
# File 'lib/webrobots/robotstxt.rb', line 657 def compile self end |