Class: ASAutotest::Problem::TypeMismatch
- Inherits:
-
ASAutotest::Problem
- Object
- ASAutotest::Problem
- ASAutotest::Problem::TypeMismatch
- Defined in:
- lib/asautotest/problematic-file.rb
Constant Summary
Constants inherited from ASAutotest::Problem
LINE_NUMBER_COLUMN_WIDTH, MESSAGE_COLUMN_WIDTH
Instance Attribute Summary
Attributes inherited from ASAutotest::Problem
Instance Method Summary collapse
- #details ⇒ Object
-
#initialize(expected_type, actual_type) ⇒ TypeMismatch
constructor
A new instance of TypeMismatch.
- #message ⇒ Object
Methods inherited from ASAutotest::Problem
[], #bullet_details, #column_number, #detail, #details_column, #dummy_line_number_column, #extra_details, #identifier_source_line_details, #identifier_source_line_parts, #indentation_width, #last_details, #last_extra_details, #last_message, #line_number, #line_number_column, #member_details, #message_column, #message_column_overflowed?, parse, #plain_message, #previous, #print_report, #problematic_identifier, #problematic_identifier_post, #problematic_identifier_pre, #sort_key, #source_line, #source_line_details, #type_warning?
Constructor Details
#initialize(expected_type, actual_type) ⇒ TypeMismatch
Returns a new instance of TypeMismatch.
366 367 368 369 |
# File 'lib/asautotest/problematic-file.rb', line 366 def initialize(expected_type, actual_type) @expected_type = expected_type @actual_type = actual_type end |
Instance Method Details
#details ⇒ Object
376 377 378 |
# File 'lib/asautotest/problematic-file.rb', line 376 def details identifier_source_line_details end |
#message ⇒ Object
371 372 373 374 |
# File 'lib/asautotest/problematic-file.rb', line 371 def "Expected \e[4m#@expected_type\e[0m " + "but was \e[4m#@actual_type\e[0m:" end |