Sha256: 53d3dd0b794506f1b6e4f77a20e84b5eaa0ed83d708715efb3d8f894f03f0196

Contents?: true

Size: 372 Bytes

Versions: 8

Compression:

Stored size: 372 Bytes

Contents

class Foo
  @inherited = []
  def self.inherited(klass)
    @inherited << klass
  end
end

class Bar < Foo
end

class Baz < Foo
end

__END__
# Classes
class Foo
  self.@inherited: Array[singleton(Bar) | singleton(Baz)]

  def self.inherited: (singleton(Bar) | singleton(Baz) klass) -> (Array[singleton(Bar) | singleton(Baz)])
end

class Bar < Foo
end

class Baz < Foo
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
typeprof-0.20.0 smoke/inherited.rb
typeprof-0.15.3 smoke/inherited.rb
typeprof-0.15.2 smoke/inherited.rb
typeprof-0.15.1 smoke/inherited.rb
typeprof-0.15.0 smoke/inherited.rb
typeprof-0.14.1 smoke/inherited.rb
typeprof-0.14.0 smoke/inherited.rb
typeprof-0.13.0 smoke/inherited.rb