Skip to content

Commit

Permalink
next_with_step.rb added
Browse files Browse the repository at this point in the history
  • Loading branch information
Karthikeyan A K committed Dec 18, 2012
1 parent b74a170 commit 49a9808
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions next_with_step.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# next_with_step.rb

5.step(50, 5) do |num|
next if num == 20
puts num
end

0 comments on commit 49a9808

Please sign in to comment.