Sha256: 671dcfd224cf5da0f9c8f428308eb3c8091256da79b2921d5e935fe498b17519

Contents?: true

Size: 455 Bytes

Versions: 11

Compression:

Stored size: 455 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 x) { (Integer) -> (:sym2 | Integer) } -> (:sym2 | Integer)
end

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

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

Version data entries

11 entries across 11 versions & 1 rubygems

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