Sha256: afa32d4000618d4a4a2659fb457667521c95fb7e1b950cbe94d85b36d012a871

Contents?: true

Size: 238 Bytes

Versions: 3

Compression:

Stored size: 238 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) -> (:sym | Integer | String)
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
typeprof-0.9.2 smoke/flow7.rb
typeprof-0.9.1 smoke/flow7.rb
typeprof-0.9.0 smoke/flow7.rb