Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/ruby_marks.rb
Instance Method Summary collapse
Instance Method Details
#find_mesure(measure, tolerance) ⇒ Object
86 87 88 89 90 91 92 93 94 |
# File 'lib/ruby_marks.rb', line 86 def find_mesure(measure, tolerance) ax = [] each do |k, v| max = v.max { |a, b| a <=> b } min = v.min { |a, b| a <=> b } ax << [min, max] if max - min >= measure - tolerance && max - min <= measure + tolerance end ax end |