Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/longest_line.rb
Instance Method Summary collapse
-
#longest_line ⇒ Object
Returns line No.
Instance Method Details
#longest_line ⇒ Object
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 |