Class: ASAutotest::Problem::ImplementationProblem
- Inherits:
-
ASAutotest::Problem
- Object
- ASAutotest::Problem
- ASAutotest::Problem::ImplementationProblem
- Defined in:
- lib/asautotest/problematic-file.rb
Direct Known Subclasses
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
- #detail ⇒ Object
- #details ⇒ Object
-
#initialize(member, implementing_type) ⇒ ImplementationProblem
constructor
A new instance of ImplementationProblem.
- #message ⇒ Object
Methods inherited from ASAutotest::Problem
[], #bullet_details, #column_number, #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(member, implementing_type) ⇒ ImplementationProblem
Returns a new instance of ImplementationProblem.
382 383 384 385 |
# File 'lib/asautotest/problematic-file.rb', line 382 def initialize(member, implementing_type) @member = member @implementing_type = implementing_type end |
Instance Method Details
#detail ⇒ Object
395 |
# File 'lib/asautotest/problematic-file.rb', line 395 def detail ; @member end |
#details ⇒ Object
397 398 399 |
# File 'lib/asautotest/problematic-file.rb', line 397 def details "\e[0m * \e[1m#{@member.name}\e[0m (#{@member.type})\e[0m" end |
#message ⇒ Object
387 388 389 390 391 392 393 |
# File 'lib/asautotest/problematic-file.rb', line 387 def if file.type == @implementing_type "#{}:" else "#{} in #@implementing_type:" end end |