Module: Enumerable

Defined in:
app/helpers/stable_helper.rb

Instance Method Summary collapse

Instance Method Details

#enum_drop(count) ⇒ Object



48
49
50
51
52
# File 'app/helpers/stable_helper.rb', line 48

def enum_drop(count)
	self.enum_drop_with_index(count) do |e, index|
		yield e
	end
end

#enum_drop_with_index(count) ⇒ Object



41
42
43
44
45
46
# File 'app/helpers/stable_helper.rb', line 41

def enum_drop_with_index(count)
	self.each_with_index do |e, index|
		next if index < count
		yield e, index
	end
end