Sha256: ffb3add79a331c899bb16565584e120925d61d11e611b8d45e206f6349e204f8

Contents?: true

Size: 340 Bytes

Versions: 6

Compression:

Stored size: 340 Bytes

Contents

def foo(a, o1=1, o2=2, *r, z)
  [a, o1, o2, r, z]
end

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

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

Version data entries

6 entries across 6 versions & 1 rubygems

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