class Array

Public Instance Methods

up_to_limit(limit) click to toggle source

Takes the first N items of the array

# File lib/baseball_calc/array.rb, line 4
def up_to_limit(limit)
        size > (limit-1) ? self[0..limit-1] : self
end