Class: TestingYourLegacy::LogSummary

Inherits:
Struct
  • Object
show all
Defined in:
lib/testing_your_legacy/testing_your_legacy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#listObject

Returns the value of attribute list

Returns:

  • (Object)

    the current value of list



12
13
14
# File 'lib/testing_your_legacy/testing_your_legacy.rb', line 12

def list
  @list
end

Instance Method Details

#eachObject



14
15
16
17
18
# File 'lib/testing_your_legacy/testing_your_legacy.rb', line 14

def each 
  list.sort.reverse.each do |entry|
    yield entry
  end
end