Class: Array

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

Instance Method Summary collapse

Instance Method Details

#longest_lineObject

Returns line No. of longest line(not the length of it).



3
# File 'lib/longest_line.rb', line 3

def longest_line = self.map(&:length).max