Sha256: 0c66cd59a9573b36e26d6a08c323bc11bab240eb1a573f4ba5523bcf9e530cda

Contents?: true

Size: 339 Bytes

Versions: 3

Compression:

Stored size: 339 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) -> nil
end

class A
  @int: Integer
  @str: String
  @val: (Integer | String)?
  def initialize: ((Integer | String)?) -> ((Integer | String)?)
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
typeprof-0.9.2 smoke/initialize.rb
typeprof-0.9.1 smoke/initialize.rb
typeprof-0.9.0 smoke/initialize.rb