Sha256: c6d38810ac1965421260048d72e6891795bf6e38cded385da341781f8771ed48

Contents?: true

Size: 218 Bytes

Versions: 6

Compression:

Stored size: 218 Bytes

Contents

# TODO: foo should accept "s: String | [Integer]"?
def foo(n: 42, s: [n])
  [n, s]
end

foo(n: 42, s: "str")

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

Version data entries

6 entries across 6 versions & 1 rubygems

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