Class: ASAutotest::Problem::TooManyArguments
- Inherits:
-
ASAutotest::Problem
- Object
- ASAutotest::Problem
- ASAutotest::Problem::TooManyArguments
- 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(max) ⇒ TooManyArguments
constructor
A new instance of TooManyArguments.
- #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(max) ⇒ TooManyArguments
Returns a new instance of TooManyArguments.
322 |
# File 'lib/asautotest/problematic-file.rb', line 322 def initialize(max) @max = max end |
Instance Method Details
#details ⇒ Object
330 |
# File 'lib/asautotest/problematic-file.rb', line 330 def details ; source_line_details end |
#message ⇒ Object
323 324 325 326 327 328 329 |
# File 'lib/asautotest/problematic-file.rb', line 323 def if @max == 0 "No arguments allowed:" else "Too many arguments (only #@max allowed):" end end |