PageRenderTime 17ms CodeModel.GetById 12ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/test/param_splat.rb

http://github.com/feyeleanor/RubyGoLightly
Ruby | 18 lines | 8 code | 2 blank | 8 comment | 0 complexity | 7d0a435d474e691266cb1f7a0e4d589a MD5 | raw file
 1def oye(x, *a)
 2  puts x
 3  puts a.size
 4  puts a[0]
 5  puts a[1]
 6end
 7
 8oye 1, 2, 3
 9# => 1
10# => 2
11# => 2
12# => 3
13
14oye 1
15# => 1
16# => 0
17# => 
18# =>