Exception: Lego::Model::ParseError
- Inherits:
-
StandardError
- Object
- StandardError
- Lego::Model::ParseError
- Defined in:
- lib/lego/model.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(errors = {}) ⇒ ParseError
constructor
A new instance of ParseError.
Constructor Details
#initialize(errors = {}) ⇒ ParseError
Returns a new instance of ParseError.
6 7 8 9 |
# File 'lib/lego/model.rb', line 6 def initialize(errors={}) @errors = errors super(errors.inspect) end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
11 12 13 |
# File 'lib/lego/model.rb', line 11 def errors @errors end |