Sha256: 4d47ecd0040bdaa47a350873ecf2238bb96ddcbae8e12204123caabf6a2c50ab

Contents?: true

Size: 450 Bytes

Versions: 7

Compression:

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
typeprof-0.3.0 smoke/rest2.rb
typeprof-0.2.0 smoke/rest2.rb
typeprof-0.1.4 smoke/rest2.rb
typeprof-0.1.3 smoke/rest2.rb
typeprof-0.1.2 smoke/rest2.rb
typeprof-0.1.1 smoke/rest2.rb
typeprof-0.1.0 smoke/rest2.rb