Created
July 30, 2012 16:04
-
-
Save jasonLaster/3208046 to your computer and use it in GitHub Desktop.
fizz buzz
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@i = 0 | |
1.upto(100) {|i| @i = i} | |
on ->(frame) { frame.var("i") == 15 } do puts "fizz buzz" end | |
on ->(frame) { frame.var("i") == 3 } do puts "fizz" end | |
on ->(frame) { frame.var("i") == 5 } do puts "buzz" end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment