Sha256: 5d2e723f06a3c6ce88afad1d9ba53afecd9e7da6c8f0b976ee08fc20fbd67e82

Contents?: true

Size: 234 Bytes

Versions: 3

Compression:

Stored size: 234 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
  def initialize: (:x, :y, :z) -> [:x, :y, :z]
end

Version data entries

3 entries across 3 versions & 1 rubygems

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