Class: WebRobots::RobotsTxt::Line

Inherits:
Object
  • Object
show all
Defined in:
lib/webrobots/robotstxt.rb

Direct Known Subclasses

AccessControlLine, AgentLine, CrawlDelayLine, ExtentionLine

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (Line) initialize(token, value)

Returns 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