Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/extensions.rb
Instance Method Summary collapse
-
#limit(size) ⇒ Object
Returns elements between first and the specific limit.
Instance Method Details
#limit(size) ⇒ Object
Returns elements between first and the specific limit.
42 43 44 |
# File 'lib/extensions.rb', line 42 def limit(size) self[0..size] end |