Class: Array
Instance Method Summary collapse
Instance Method Details
#clip(number_of_last_elements = 1) ⇒ Object
4 5 6 |
# File 'lib/omu_support/core_ext/array.rb', line 4 def clip(number_of_last_elements = 1) take size - number_of_last_elements end |