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.
84 85 86 87 |
# File 'lib/bbc_standards/validator.rb', line 84 def initialize(, line=nil) @message = @line = line end |
Instance Attribute Details
#line ⇒ Object
Returns the value of attribute line.
82 83 84 |
# File 'lib/bbc_standards/validator.rb', line 82 def line @line end |
#message ⇒ Object
Returns the value of attribute message.
82 83 84 |
# File 'lib/bbc_standards/validator.rb', line 82 def @message end |