Sha256: 8b0cf74ac9120d9f8680c0e6ad34c831ea0eadf6c9d18458f7d7f9bdaede46e0

Contents?: true

Size: 284 Bytes

Versions: 11

Compression:

Stored size: 284 Bytes

Contents

class Test
  class << self
    def foo(x)
      x
    end

    alias bar foo
  end
end

Test.foo(1)
Test.bar("str")
#Test.baz(:sym)
# Test#foo: (Integer) -> Integer

__END__
# Classes
class Test
  def self.foo: (Integer | String x) -> (Integer | String)
  alias self.bar self.foo
end

Version data entries

11 entries across 11 versions & 1 rubygems

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