Class: BBCStandards::Error

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, line=nil)
  @message = message
  @line = line
end

Instance Attribute Details

#lineObject

Returns the value of attribute line.



82
83
84
# File 'lib/bbc_standards/validator.rb', line 82

def line
  @line
end

#messageObject

Returns the value of attribute message.



82
83
84
# File 'lib/bbc_standards/validator.rb', line 82

def message
  @message
end