%w( a b c d ).from(0)# => ["a", "b", "c", "d"]%w( a b c d ).from(2)# => ["c", "d"]%w( a b c d ).from(10)# => []%w().from(0)# => []%w( a b c d ).from(-2)# => ["c", "d"]%w( a b c ).from(-10)# => []
# File activesupport/lib/active_support/core_ext/array/access.rb, line 12
def from(position)
self[position, length] || []
end