Sha256: d610ad74d5e9afdf98d496e6c146e17423350c4ed058dc581427a166faaeb9b1

Contents?: true

Size: 367 Bytes

Versions: 11

Compression:

Stored size: 367 Bytes

Contents

def foo(a, b, c)
  [a, b, c]
end

a = [1, "S", :s]
foo(*a)

#def bar(a, b, c)
#  [a, b,  d]
#end
#def baz(a, b, c)
#  [a, b,  d]
#end
#def qux(a, b, c)
#  [a, b,  d]
#end
#a = ["S", :s]
#bar(1, *a)

#a = ["S"] + [:s]
#baz(1, *a)

#a = [1, "S"]
#qux(*a, :s)

__END__
# Classes
class Object
  private
  def foo: (Integer a, String b, :s c) -> [Integer, String, :s]
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
typeprof-0.20.0 smoke/rest2.rb
typeprof-0.15.3 smoke/rest2.rb
typeprof-0.15.2 smoke/rest2.rb
typeprof-0.15.1 smoke/rest2.rb
typeprof-0.15.0 smoke/rest2.rb
typeprof-0.14.1 smoke/rest2.rb
typeprof-0.14.0 smoke/rest2.rb
typeprof-0.13.0 smoke/rest2.rb
typeprof-0.12.0 smoke/rest2.rb
typeprof-0.11.0 smoke/rest2.rb
typeprof-0.10.0 smoke/rest2.rb