Class: ValidationError
- Inherits:
-
Object
- Object
- ValidationError
- Defined in:
- lib/InternalW3cValidator.rb
Instance Attribute Summary collapse
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#page ⇒ Object
readonly
Returns the value of attribute page.
Instance Method Summary collapse
-
#initialize(page, message, line) ⇒ ValidationError
constructor
A new instance of ValidationError.
- #to_s ⇒ Object
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, , line) @page = page = @line = line end |
Instance Attribute Details
#line ⇒ Object (readonly)
Returns the value of attribute line.
35 36 37 |
# File 'lib/InternalW3cValidator.rb', line 35 def line @line end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
35 36 37 |
# File 'lib/InternalW3cValidator.rb', line 35 def end |
#page ⇒ Object (readonly)
Returns the value of attribute page.
35 36 37 |
# File 'lib/InternalW3cValidator.rb', line 35 def page @page end |
Instance Method Details
#to_s ⇒ Object
43 44 45 |
# File 'lib/InternalW3cValidator.rb', line 43 def to_s "#{page} : line #{line} : #{message}" end |