Exception: TemplateParser::ProcessingErrors
- Inherits:
-
StandardError
- Object
- StandardError
- TemplateParser::ProcessingErrors
- Defined in:
- lib/template_parser.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(message, errors) ⇒ ProcessingErrors
constructor
A new instance of ProcessingErrors.
Constructor Details
#initialize(message, errors) ⇒ ProcessingErrors
Returns a new instance of ProcessingErrors.
14 15 16 17 |
# File 'lib/template_parser.rb', line 14 def initialize(, errors) @errors = errors super( + "\n\n" + errors.map { |e| e. }.compact.join("\n-----------------------------------------------------------\n")) end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
12 13 14 |
# File 'lib/template_parser.rb', line 12 def errors @errors end |