Sha256: d11cf2b51b506d4aa1174637bdf0cdcaaa2ecc0849c68ab18448f41ebefd8b53

Contents?: true

Size: 193 Bytes

Versions: 18

Compression:

Stored size: 193 Bytes

Contents

def foo(x)
  "s" + case x
  when Integer
    x.to_s
  when String
    x
  else
    raise
  end
end

foo(1)
foo("1")

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

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
typeprof-0.7.0 smoke/flow6.rb
typeprof-0.6.1 smoke/flow6.rb
typeprof-0.6.0 smoke/flow6.rb
typeprof-0.5.4 smoke/flow6.rb
typeprof-0.5.3 smoke/flow6.rb
typeprof-0.5.2 smoke/flow6.rb
typeprof-0.5.1 smoke/flow6.rb
typeprof-0.5.0 smoke/flow6.rb
typeprof-0.4.2 smoke/flow6.rb
typeprof-0.4.1 smoke/flow6.rb
typeprof-0.4.0 smoke/flow6.rb
typeprof-0.3.0 smoke/flow6.rb
typeprof-0.2.0 smoke/flow6.rb
typeprof-0.1.4 smoke/flow6.rb
typeprof-0.1.3 smoke/flow6.rb
typeprof-0.1.2 smoke/flow6.rb
typeprof-0.1.1 smoke/flow6.rb
typeprof-0.1.0 smoke/flow6.rb