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