Class: ValidationError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(page, message, line) ⇒ ValidationError

Returns a new instance of ValidationError.



37
38
39
40
41
# File 'lib/InternalW3cValidator.rb', line 37

def initialize(page, message, line)
  @page = page
  @message = message
  @line = line
end

Instance Attribute Details

#lineObject (readonly)

Returns the value of attribute line.



35
36
37
# File 'lib/InternalW3cValidator.rb', line 35

def line
  @line
end

#messageObject (readonly)

Returns the value of attribute message.



35
36
37
# File 'lib/InternalW3cValidator.rb', line 35

def message
  @message
end

#pageObject (readonly)

Returns the value of attribute page.



35
36
37
# File 'lib/InternalW3cValidator.rb', line 35

def page
  @page
end

Instance Method Details

#to_sObject



43
44
45
# File 'lib/InternalW3cValidator.rb', line 43

def to_s 
  "#{page} : line #{line} : #{message}"
end