Sha256: 99432ec136cd8eb2ba23fec14d2a19c7f12d87a8ad3f6505e76f3e6cd058aba2

Contents?: true

Size: 374 Bytes

Versions: 11

Compression:

Stored size: 374 Bytes

Contents

class Foo
  def foo=(x)
    @foo = x
  end

  def foo
    @foo
  end
end

def log(x)
end

Foo.new.foo = 1
log(Foo.new.foo)
Foo.new.foo = "str"
log(Foo.new.foo)

__END__
# Classes
class Object
  private
  def log: (Integer | String x) -> nil
end

class Foo
  @foo: Integer | String

  def foo=: (Integer | String x) -> (Integer | String)
  def foo: -> (Integer | String)
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
typeprof-0.20.0 smoke/ivar.rb
typeprof-0.15.3 smoke/ivar.rb
typeprof-0.15.2 smoke/ivar.rb
typeprof-0.15.1 smoke/ivar.rb
typeprof-0.15.0 smoke/ivar.rb
typeprof-0.14.1 smoke/ivar.rb
typeprof-0.14.0 smoke/ivar.rb
typeprof-0.13.0 smoke/ivar.rb
typeprof-0.12.0 smoke/ivar.rb
typeprof-0.11.0 smoke/ivar.rb
typeprof-0.10.0 smoke/ivar.rb