Sha256: 41d185dbec2a017b676268066f9e34308f84befd02878bac35fd6e010f7988b0

Contents?: true

Size: 194 Bytes

Versions: 11

Compression:

Stored size: 194 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
  private
  def foo: (Integer | String n) -> (Integer | String)
end

Version data entries

11 entries across 11 versions & 1 rubygems

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