instance method
from
Ruby on Rails 3.0.20
Since v3.0.20Signature
from(position)
Returns the tail of the array from position.
%w( a b c d ).from(0) # => %w( a b c d ) %w( a b c d ).from(2) # => %w( c d ) %w( a b c d ).from(10) # => nil %w().from(0) # => %w()
Parameters
-
positionreq
Source
# File activesupport/lib/active_support/core_ext/array/access.rb, line 8
def from(position)
self[position..-1]
end
Defined in activesupport/lib/active_support/core_ext/array/access.rb line 8
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Array