Sha256: 66f9aa90e2843b6eab2d3f8055ff5a0b369886e3eee95f0f4279bc6143efa502

Contents?: true

Size: 183 Bytes

Versions: 18

Compression:

Stored size: 183 Bytes

Contents

def foo(n)
  if n.is_a?(Integer)
    n + 1
  else
    n + "STR"
  end
end

foo(42)
foo("str")

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

Version data entries

18 entries across 18 versions & 1 rubygems

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