Sha256: ddb4ecd80a7a87fead3195425536010ce7033e7e0ca2817133044828581daca4

Contents?: true

Size: 240 Bytes

Versions: 11

Compression:

Stored size: 240 Bytes

Contents

def foo(n)
  case n
  when Integer
    n + 1
  when String
    n + "STR"
  else
    n
  end
end

foo(42)
foo("str")
foo(:sym)

__END__
# Classes
class Object
  private
  def foo: (:sym | Integer | String n) -> (:sym | Integer | String)
end

Version data entries

11 entries across 11 versions & 1 rubygems

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