Sha256: 071eb01e4675004f7deff2275e3b3a4b468ef3d1d592093c5c5e649e649d3fd6

Contents?: true

Size: 281 Bytes

Versions: 11

Compression:

Stored size: 281 Bytes

Contents

def foo(x)
  yield x
  yield 1
end

foo("str") do |x|
  x
end

foo(:sym) do |x|
  if 1+1
    x
  else
    1
  end
end

__END__
# Classes
class Object
  private
  def foo: (:sym | String x) { (:sym | Integer | String) -> (:sym | Integer | String) } -> (:sym | Integer | String)
end

Version data entries

11 entries across 11 versions & 1 rubygems

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