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.
73 74 75 76 |
# File 'lib/bbc_standards/validator.rb', line 73 def initialize(, line=nil) @message = @line = line end |
Instance Attribute Details
#line ⇒ Object
Returns the value of attribute line.
71 72 73 |
# File 'lib/bbc_standards/validator.rb', line 71 def line @line end |
#message ⇒ Object
Returns the value of attribute message.
71 72 73 |
# File 'lib/bbc_standards/validator.rb', line 71 def @message end |