Exception: Astel::Rewriter::ValidationError
- Defined in:
- lib/astel/rewriter.rb
Instance Attribute Summary collapse
-
#parse_errors ⇒ Object
readonly
Returns the value of attribute parse_errors.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(result, parse_errors) ⇒ ValidationError
constructor
A new instance of ValidationError.
Constructor Details
#initialize(result, parse_errors) ⇒ ValidationError
Returns a new instance of ValidationError.
21 22 23 24 25 |
# File 'lib/astel/rewriter.rb', line 21 def initialize(result, parse_errors) @result = result @parse_errors = parse_errors.freeze super("rewritten source contains #{parse_errors.length} syntax error(s)") end |
Instance Attribute Details
#parse_errors ⇒ Object (readonly)
Returns the value of attribute parse_errors.
19 20 21 |
# File 'lib/astel/rewriter.rb', line 19 def parse_errors @parse_errors end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
19 20 21 |
# File 'lib/astel/rewriter.rb', line 19 def result @result end |