Sha256: 991b82c88ecf5dedfb2d737f245503f9a5109675c49f6f9f18bd0b03c22acec6
Contents?: true
Size: 449 Bytes
Versions: 6
Compression:
Stored size: 449 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, ?String, *String, String) -> Array[String] end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
typeprof-0.2.0 | smoke/rest1.rb |
typeprof-0.1.4 | smoke/rest1.rb |
typeprof-0.1.3 | smoke/rest1.rb |
typeprof-0.1.2 | smoke/rest1.rb |
typeprof-0.1.1 | smoke/rest1.rb |
typeprof-0.1.0 | smoke/rest1.rb |