Sha256: bd96b335e1355e0476bf7087bffe6f606424e14628d58ba7324b2e90c4181cd1

Contents?: true

Size: 228 Bytes

Versions: 3

Compression:

Stored size: 228 Bytes

Contents

require "iolite"

include Iolite::Placeholders
include Iolite::Statement

fizzbuzz = if_else(
	arg1 % 15 == 0, "FizzBuzz", if_else(
	arg1 %  5 == 0, "Buzz", if_else(
	arg1 %  3 == 0, "Fizz",
	arg1
)))

p (1..20).map &fizzbuzz


Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
iolite-0.0.3 example/fizzbuzz.rb
iolite-0.0.2 example/fizzbuzz.rb
iolite-0.0.1 example/fizzbuzz.rb