Sha256: 7e0459ecd2f55ef9283285bd7c28a7291b990973094c308d65daba13c11d53d6

Contents?: true

Size: 258 Bytes

Versions: 5

Compression:

Stored size: 258 Bytes

Contents

class Foo
  class << self
    alias [] new
  end

  def initialize(a, b, c)
    @a, @b, @c = a, b, c
  end
end

Foo[:x, :y, :z]
__END__
# Classes
class Foo
  @a: :x
  @b: :y
  @c: :z

  alias self.[] self.new
  def initialize: (:x a, :y b, :z c) -> void
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
typeprof-0.20.0 smoke/alias2.rb
typeprof-0.15.3 smoke/alias2.rb
typeprof-0.15.2 smoke/alias2.rb
typeprof-0.15.1 smoke/alias2.rb
typeprof-0.15.0 smoke/alias2.rb