Sha256: 98b4fa7b88e7987b24d21454b50ccedf69ceec47b77571cf4f41800194f0b7aa

Contents?: true

Size: 481 Bytes

Versions: 11

Compression:

Stored size: 481 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
  private
  def foo: (:a | Integer | String a, *Integer | String r, :z | Integer | String z) -> (Array[Integer | String])
  def bar: (String a, ?Integer | String o, *String r, String z) -> Array[String]
end

Version data entries

11 entries across 11 versions & 1 rubygems

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