Method: Part.absences
- Defined in:
- lib/oro/parts.rb
.absences ⇒ Object
53 54 55 56 57 58 59 60 |
# File 'lib/oro/parts.rb', line 53 def self.absences length_exists = proc { |length| list.select { |w| w.length == length }.empty? ? false : true } lengths = [] (shortest..longest).each do |len| lengths << len if !length_exists.call(len) end lengths end |