Sha256: 1ce2ecc2e39c21104b33c75e923d740f5582ebd3ea8f6f95e422f76e633e6f53

Contents?: true

Size: 266 Bytes

Versions: 6

Compression:

Stored size: 266 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) -> [:x, :y, :z]
end

Version data entries

6 entries across 6 versions & 1 rubygems

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