Module: Steep::Errors::ResultPrinter
- Included in:
- BlockTypeMismatch, BreakTypeMismatch, IncompatibleAnnotation, IncompatibleAssignment, IncompatibleMethodTypeAnnotation, IncompatibleTuple, IncompatibleTypeCase, MethodBodyTypeMismatch, MethodReturnTypeAnnotationMismatch, ReturnTypeMismatch, UnsatisfiableConstraint
- Defined in:
- lib/steep/errors.rb
Instance Method Summary collapse
Instance Method Details
#print_result_to(io, level: 2) ⇒ Object
21 22 23 24 25 |
# File 'lib/steep/errors.rb', line 21 def print_result_to(io, level: 2) printer = Drivers::TracePrinter.new(io) printer.print result.trace, level: level io.puts "==> #{result.error.}" end |
#print_to(io) ⇒ Object
27 28 29 30 |
# File 'lib/steep/errors.rb', line 27 def print_to(io) super print_result_to io end |