Sha256: 4cd684851316343b135dc132e731ccd515043d609f0b5ac0d94f7a4e2c989048
Contents?: true
Size: 463 Bytes
Versions: 6
Compression:
Stored size: 463 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 def initialize: -> Hash[bot, bot] def set: -> :sym attr_reader array: Array[:sym | Integer | String] attr_reader hash: {a: Integer, b: String, c: :sym} end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
typeprof-0.14.1 | smoke/ivar2.rb |
typeprof-0.14.0 | smoke/ivar2.rb |
typeprof-0.13.0 | smoke/ivar2.rb |
typeprof-0.12.0 | smoke/ivar2.rb |
typeprof-0.11.0 | smoke/ivar2.rb |
typeprof-0.10.0 | smoke/ivar2.rb |