Method: M::TestCollection#by_line_number

Defined in:
lib/m/test_collection.rb

#by_line_number(&block) ⇒ Object

Be considerate when printing out tests and pre-sort them by line number



36
37
38
39
40
# File 'lib/m/test_collection.rb', line 36

def  &block
  # On each member of the collection, sort by line number and yield
  # the block into the sorted collection
  sort_by(&:start_line).each(&block)
end