PageRenderTime 28ms CodeModel.GetById 18ms app.highlight 6ms RepoModel.GetById 2ms app.codeStats 0ms

/test/return.rb

http://github.com/feyeleanor/RubyGoLightly
Ruby | 18 lines | 14 code | 2 blank | 2 comment | 0 complexity | bebb6460ea8aa3fb2f44c66c4101005a MD5 | raw file
 1def nomnom
 2  return
 3  puts "hi"
 4end
 5nomnom
 6
 7def return_me(this)
 8  return this
 9  raise "should not get here"
10end
11puts return_me(1)
12# => 1
13
14def steak(x, y)
15  return x, y
16end
17puts steak(1, 2).size
18# => 2