Sha256: a51bd8ec6bec3240c153c28cb05b8d35969b43fd47370097f8e22c5d55588cb8

Contents?: true

Size: 292 Bytes

Versions: 7

Compression:

Stored size: 292 Bytes

Contents

grades = %w{A B A C D F}

for grade in grades

case grade
when "A", "B"
  puts 'You are pretty smart!'
when "C"
  puts 'You are reasonably intelligent!'
end

end

num = 5

case num
when 1
  puts 'Your input was 1'
when 2
  puts 'Your input was 2'
else
puts "Your input was greater than 2"
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
nilac-0.0.4.3.9.7.1 shark/test_files/case.nila
nilac-0.0.4.3.9.7 shark/test_files/case.nila
nilac-0.0.4.3.9.6 shark/test_files/case.nila
nilac-0.0.4.3.9.5 shark/test_files/case.nila
nilac-0.0.4.3.9.4 shark/test_files/case.nila
nilac-0.0.4.3.9.3 shark/test_files/case.nila
nilac-0.0.4.3.9.2 shark/test_files/case.nila