Sha256: a8f4288ff66ca97507539b29392547884e49b1e7d196cb86fea1078ba98fef3e
Contents?: true
Size: 374 Bytes
Versions: 5
Compression:
Stored size: 374 Bytes
Contents
FooBar = Struct.new(:foo, :bar) class FooBar def my_foo foo end end def gen_foobar FooBar.new(1) end foobar = gen_foobar foobar.foo = "str" foobar.bar = :sym __END__ # Classes class Object private def gen_foobar: -> FooBar end class FooBar < Struct attr_accessor foo(): Integer | String attr_accessor bar(): :sym? def my_foo: -> (Integer | String) end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
typeprof-0.11.0 | smoke/struct2.rb |
typeprof-0.10.0 | smoke/struct2.rb |
typeprof-0.9.2 | smoke/struct2.rb |
typeprof-0.9.1 | smoke/struct2.rb |
typeprof-0.9.0 | smoke/struct2.rb |