Sha256: 639a382e6c4cfacba3a8755943e024a47ffc9fcadcb8f052a75d9088444b8d82

Contents?: true

Size: 456 Bytes

Versions: 19

Compression:

Stored size: 456 Bytes

Contents

class Common
  def func(x)
    yield 1
  end
end

class Foo
  def foo
    Common.new.func("str") do |x|
      1
    end
  end
end

class Bar
  def bar
    Common.new.func(:sym) do |x|
      :sym2
    end
  end
end

Foo.new.foo
Bar.new.bar

__END__
# Classes
class Common
  def func : (:sym | String) { (Integer) -> (:sym2 | Integer) } -> (:sym2 | Integer)
end

class Foo
  def foo : -> (:sym2 | Integer)
end

class Bar
  def bar : -> (:sym2 | Integer)
end

Version data entries

19 entries across 19 versions & 1 rubygems

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