Class: TestLauncher::Queries::SearchQuery

Inherits:
BaseQuery
  • Object
show all
Defined in:
lib/test_launcher/queries.rb

Instance Attribute Summary

Attributes inherited from BaseQuery

#request

Instance Method Summary collapse

Methods inherited from BaseQuery

#initialize

Constructor Details

This class inherits a constructor from TestLauncher::Queries::BaseQuery

Instance Method Details

#commandObject



396
397
398
399
400
401
402
403
404
405
406
407
408
409
# File 'lib/test_launcher/queries.rb', line 396

def command
  [
    :line_number,
    :by_path,
    :multi_path_query,
    :example_name,
    :multi_example_name,
    :from_full_regex,
  ].each {|command_type|
    command = command_finder.public_send(command_type)
    return command if command
  }
  nil
end