Sha256: 4eace87051ce184c8f53070a4a1ebdbcbc8a4411dd371059aa1ad45c51097957

Contents?: true

Size: 176 Bytes

Versions: 7

Compression:

Stored size: 176 Bytes

Contents

def foo(arg)
  if Integer === arg
    arg
  else
    42
  end
end

foo("str")
foo(1)

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
typeprof-0.20.0 smoke/flow11.rb
typeprof-0.15.3 smoke/flow11.rb
typeprof-0.15.2 smoke/flow11.rb
typeprof-0.15.1 smoke/flow11.rb
typeprof-0.15.0 smoke/flow11.rb
typeprof-0.14.1 smoke/flow11.rb
typeprof-0.14.0 smoke/flow11.rb