Sha256: e56f8585707788b3d02d68746da777d9988a1f27f6281e50a9833ca4ae6149cc

Contents?: true

Size: 459 Bytes

Versions: 12

Compression:

Stored size: 459 Bytes

Contents

def foo(a, *r, z)
  r
end

foo(1, 2, "S", 3)
foo(1, 2, 3)
foo("a", "b", "c")
foo(:a, :z)

def bar(a, o=1, *r, z)
  r
end

bar("A", "Z")
bar("A", "B", "Z")
bar("A", "B", "C", "Z")
bar("A", "B", "C", "D", "Z")
bar("A", "B", "C", "D", "E", "Z")

__END__
# Classes
class Object
  def foo : (:a | Integer | String, *Integer | String, :z | Integer | String) -> (Array[Integer | String])
  def bar : (String, ?Integer | String, *String, String) -> Array[String]
end

Version data entries

12 entries across 12 versions & 1 rubygems

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