Class: WebRobots::RobotsTxt::Line

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(token, value) ⇒ 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

#tokenObject (readonly)

Returns the value of attribute token



653
654
655
# File 'lib/webrobots/robotstxt.rb', line 653

def token
  @token
end

#valueObject (readonly)

Returns the value of attribute value



653
654
655
# File 'lib/webrobots/robotstxt.rb', line 653

def value
  @value
end

Instance Method Details

#compileObject



655
656
657
# File 'lib/webrobots/robotstxt.rb', line 655

def compile
  self
end