class A

  1. test/singleton_test.rb

Methods

Public Class

  1. new

Public Instance

  1. <<
  2. as

Attributes

as [RW]

Public Class methods

new ()
[show source]
# File test/singleton_test.rb, line 11
def initialize
  @as = []
  class << @as
    def <<(an_a)
      super
    end
  end
end

Public Instance methods

<< (an_a)
[show source]
# File test/singleton_test.rb, line 20
def <<(an_a)
  @as << an_a
end