Exception: Lego::Model::ParseError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/lego/model.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#errorsObject (readonly)

Returns the value of attribute errors.



11
12
13
# File 'lib/lego/model.rb', line 11

def errors
  @errors
end