Sha256: 4c88aaca0375b19576091cec3bf290e137c9917a38979ae19692d9bc8b3c273c

Contents?: true

Size: 250 Bytes

Versions: 14

Compression:

Stored size: 250 Bytes

Contents

def foo
  yield "str"
end

def bar
  yield :sym
end

blk = -> x { x }
foo(&blk)
bar(&blk)

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

Version data entries

14 entries across 7 versions & 1 rubygems

Version Path
typeprof-0.3.0 smoke/demo8.rb
typeprof-0.3.0 smoke/block4.rb
typeprof-0.2.0 smoke/demo8.rb
typeprof-0.2.0 smoke/block4.rb
typeprof-0.1.4 smoke/block4.rb
typeprof-0.1.4 smoke/demo8.rb
typeprof-0.1.3 smoke/demo8.rb
typeprof-0.1.3 smoke/block4.rb
typeprof-0.1.2 smoke/demo8.rb
typeprof-0.1.2 smoke/block4.rb
typeprof-0.1.1 smoke/demo8.rb
typeprof-0.1.1 smoke/block4.rb
typeprof-0.1.0 smoke/block4.rb
typeprof-0.1.0 smoke/demo8.rb