Class: ASAutotest::Problem::UndefinedType
Constant Summary
LINE_NUMBER_COLUMN_WIDTH, MESSAGE_COLUMN_WIDTH
Instance Attribute Summary
#file, #location
Instance Method Summary
collapse
[], #bullet_details, #column_number, #details_column, #dummy_line_number_column, #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
Returns a new instance of UndefinedType.
310
|
# File 'lib/asautotest/problematic-file.rb', line 310
def initialize(type) @type = type end
|
Instance Method Details
#detail ⇒ Object
313
|
# File 'lib/asautotest/problematic-file.rb', line 313
def detail ; @type.full_name end
|
#details ⇒ Object
312
|
# File 'lib/asautotest/problematic-file.rb', line 312
def details ; identifier_source_line_details end
|
314
315
316
317
318
|
# File 'lib/asautotest/problematic-file.rb', line 314
def
if problematic_identifier == "Sprite"
"Hint: It’s flash.display.Sprite."
end
end
|
#message ⇒ Object
311
|
# File 'lib/asautotest/problematic-file.rb', line 311
def message ; "Undefined type:" end
|