class Array
Public Instance Methods
even_elements()
click to toggle source
# File lib/dunmanifestin/array.rb, line 2 def even_elements select.each_with_index { |_, i| i.even? } end
odd_elements()
click to toggle source
# File lib/dunmanifestin/array.rb, line 6 def odd_elements select.each_with_index { |_, i| i.odd? } end