Sha256: 039cd75b769bd8cc7afa704b22a4a5cc007145caec83603db69e2974943c76b1
Contents?: true
Size: 467 Bytes
Versions: 5
Compression:
Stored size: 467 Bytes
Contents
class Foo def initialize @array = [] @hash = {} end def set @array << 1 @array << "str" @array << :sym @hash[:a] = 1 @hash[:b] = "str" @hash[:c] = :sym end attr_reader :array, :hash end Foo.new.array Foo.new.hash Foo.new.set __END__ # Classes class Foo attr_reader array : Array[:sym | Integer | String] attr_reader hash : {a: Integer, b: String, c: :sym} def initialize : -> Hash[bot, bot] def set : -> :sym end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
typeprof-0.8.0 | smoke/ivar2.rb |
typeprof-0.7.0 | smoke/ivar2.rb |
typeprof-0.6.1 | smoke/ivar2.rb |
typeprof-0.6.0 | smoke/ivar2.rb |
typeprof-0.5.4 | smoke/ivar2.rb |