Sha256: 8e2712dd06873abc954ddb186b2d9b8bc05a283eb4d32aa984bf53dc2550045a

Contents?: true

Size: 220 Bytes

Versions: 5

Compression:

Stored size: 220 Bytes

Contents

Foo = Struct.new(:foo)

class Foo
  def initialize(foo)
    super(foo.to_s)
  end
end

Foo.new(42)

__END__
# Classes
class Foo < Struct[untyped]
  attr_accessor foo(): String
  def initialize: (Integer foo) -> void
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
typeprof-0.20.0 smoke/struct5.rb
typeprof-0.15.3 smoke/struct5.rb
typeprof-0.15.2 smoke/struct5.rb
typeprof-0.15.1 smoke/struct5.rb
typeprof-0.15.0 smoke/struct5.rb