Sha256: 8c7bc65fe791625522781645a052d5b30a32cf42af5fd746d2de02f62d972306

Contents?: true

Size: 352 Bytes

Versions: 11

Compression:

Stored size: 352 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
  def foo : (Integer, String, :s) -> [Integer, String, :s]
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
typeprof-0.7.0 smoke/rest2.rb
typeprof-0.6.1 smoke/rest2.rb
typeprof-0.6.0 smoke/rest2.rb
typeprof-0.5.4 smoke/rest2.rb
typeprof-0.5.3 smoke/rest2.rb
typeprof-0.5.2 smoke/rest2.rb
typeprof-0.5.1 smoke/rest2.rb
typeprof-0.5.0 smoke/rest2.rb
typeprof-0.4.2 smoke/rest2.rb
typeprof-0.4.1 smoke/rest2.rb
typeprof-0.4.0 smoke/rest2.rb