Class: Range
- Inherits:
-
Object
- Object
- Range
- Defined in:
- lib/range.rb
Instance Method Summary collapse
Instance Method Details
#take(number_of_elements) ⇒ Object
2 3 4 |
# File 'lib/range.rb', line 2 def take(number_of_elements) to_a[0,number_of_elements] end |