Class: BBCStandards::Error
- Inherits:
-
Object
- Object
- BBCStandards::Error
- Defined in:
- lib/bbc_standards/validator.rb
Instance Attribute Summary collapse
-
#line ⇒ Object
Returns the value of attribute line.
-
#message ⇒ Object
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(message, line = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, line = nil) ⇒ Error
Returns a new instance of Error.
70 71 72 73 |
# File 'lib/bbc_standards/validator.rb', line 70 def initialize(, line=nil) = @line = line end |
Instance Attribute Details
#line ⇒ Object
Returns the value of attribute line.
68 69 70 |
# File 'lib/bbc_standards/validator.rb', line 68 def line @line end |
#message ⇒ Object
Returns the value of attribute message.
68 69 70 |
# File 'lib/bbc_standards/validator.rb', line 68 def end |