Sha256: 9bd56bf5ba2df3bfbf1f76f254dd0ffabee867305c91f5c8f08e516782869e0c
Contents?: true
Size: 412 Bytes
Versions: 16
Compression:
Stored size: 412 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? unless person.present? puts "There's no such person" end i=1 until i > 10 print "#{i} " i+=1 break if i == 9 end
Version data entries
16 entries across 16 versions & 1 rubygems