Sha256: 9c25765df71ec2d640c644a071f2db1c032e885f252f1344b68698dfc0d1df07

Contents?: true

Size: 308 Bytes

Versions: 4

Compression:

Stored size: 308 Bytes

Contents

# This file demonstrates unless and until statements.

# Examples are from http://www.skorks.com/2009/09/a-wealth-of-ruby-loops-and-iterators/ and 
# http://37signals.com/svn/posts/2699-making-sense-with-rubys-unless 

puts "There's no such person" unless person.present?

i = 0

i += 1 until i > 10

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
nilac-0.0.4.1.3 shark/test_files/unless_until.nila
nilac-0.0.4.1.2 shark/test_files/unless_until.nila
nilac-0.0.4.1.1 shark/test_files/unless_until.nila
nilac-0.0.4.1 shark/test_files/unless_until.nila