Skip to content

Instantly share code, notes, and snippets.

View abates's full-sized avatar

Andrew Bates abates

  • 00:14 (UTC -04:00)
View GitHub Profile
#!/usr/bin/env ruby
def demonstrate ret=false
puts "Before enumeration"
%w(one two three four five).each do |word|
puts "\tWord: #{word}"
return if ret
end
puts "After enumeration"
end