Sha256: 30548c0476ffc991009bc47679fe5de40b7c71429bbc17171c5398b2b6592fa2

Contents?: true

Size: 309 Bytes

Versions: 19

Compression:

Stored size: 309 Bytes

Contents

class Foo
  def initialize
    @ary = [1, "str", :sym]
  end

  def foo
    @ary[1]
  end

  def bar
    @ary[1] = nil
  end
end

Foo.new.foo
Foo.new.bar

__END__
# Classes
class Foo
  @ary : [Integer, String?, :sym]
  def initialize : -> [Integer, String, :sym]
  def foo : -> String?
  def bar : -> nil
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
typeprof-0.8.0 smoke/array3.rb
typeprof-0.7.0 smoke/array3.rb
typeprof-0.6.1 smoke/array3.rb
typeprof-0.6.0 smoke/array3.rb
typeprof-0.5.4 smoke/array3.rb
typeprof-0.5.3 smoke/array3.rb
typeprof-0.5.2 smoke/array3.rb
typeprof-0.5.1 smoke/array3.rb
typeprof-0.5.0 smoke/array3.rb
typeprof-0.4.2 smoke/array3.rb
typeprof-0.4.1 smoke/array3.rb
typeprof-0.4.0 smoke/array3.rb
typeprof-0.3.0 smoke/array3.rb
typeprof-0.2.0 smoke/array3.rb
typeprof-0.1.4 smoke/array3.rb
typeprof-0.1.3 smoke/array3.rb
typeprof-0.1.2 smoke/array3.rb
typeprof-0.1.1 smoke/array3.rb
typeprof-0.1.0 smoke/array3.rb