Exception: CompEx::ParsingError
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(errors) ⇒ ParsingError
constructor
A new instance of ParsingError.
Constructor Details
#initialize(errors) ⇒ ParsingError
Returns a new instance of ParsingError.
32 33 34 35 |
# File 'lib/compex.rb', line 32 def initialize(errors) @errors = errors super("Errors were detected parsing the template: #{@errors.map { it[:error] }.join(", ")}") end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
30 31 32 |
# File 'lib/compex.rb', line 30 def errors @errors end |