Class: ASAutotest::Problem::MissingReturnType

Inherits:
ASAutotest::Problem show all
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

#file, #location

Instance Method Summary collapse

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

Constructor Details

#initialize(member) ⇒ MissingReturnType

Returns a new instance of MissingReturnType.



340
# File 'lib/asautotest/problematic-file.rb', line 340

def initialize(member) @member = member end

Instance Method Details

#detailObject



342
# File 'lib/asautotest/problematic-file.rb', line 342

def detail ; @member end

#detailsObject



343
# File 'lib/asautotest/problematic-file.rb', line 343

def details ; member_details end

#messageObject



341
# File 'lib/asautotest/problematic-file.rb', line 341

def message ; "Missing return type:"  end

#type_warning?Boolean

Returns:

  • (Boolean)


344
# File 'lib/asautotest/problematic-file.rb', line 344

def type_warning? ; true end