/test/return.rb
http://github.com/feyeleanor/RubyGoLightly · Ruby · 18 lines · 14 code · 2 blank · 2 comment · 0 complexity · bebb6460ea8aa3fb2f44c66c4101005a MD5 · raw file
- def nomnom
- return
- puts "hi"
- end
- nomnom
- def return_me(this)
- return this
- raise "should not get here"
- end
- puts return_me(1)
- # => 1
- def steak(x, y)
- return x, y
- end
- puts steak(1, 2).size
- # => 2