Sha256: 5b859c2e6be43c511aa1b26c9f5e40b9c563af51d2295bc0dd534cde9d2e4b4f

Contents?: true

Size: 344 Bytes

Versions: 6

Compression:

Stored size: 344 Bytes

Contents

class A
  def initialize(x)
    @int = 1
    @str = "str"
    @val = x
  end
end

def log(x)
end
log A.new(1)
A.new("str")
A.new(nil)

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

class A
  @int: Integer
  @str: String
  @val: (Integer | String)?

  def initialize: ((Integer | String)? x) -> ((Integer | String)?)
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
typeprof-0.14.1 smoke/initialize.rb
typeprof-0.14.0 smoke/initialize.rb
typeprof-0.13.0 smoke/initialize.rb
typeprof-0.12.0 smoke/initialize.rb
typeprof-0.11.0 smoke/initialize.rb
typeprof-0.10.0 smoke/initialize.rb