Module: Contender::CopyOnWriteStructure Abstract

Extended by:
Forwardable
Included in:
CopyOnWriteArray, CopyOnWriteSet
Defined in:
lib/contender/copy_on_write_structure.rb

Overview

This module is abstract.

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(receiver) ⇒ Object



6
7
8
9
# File 'lib/contender/copy_on_write_structure.rb', line 6

def self.included(receiver)
  receiver.send :extend, ClassMethods
  receiver.send :extend, Forwardable
end

Instance Method Details

#initialize(*args, &block) ⇒ Object



59
60
61
# File 'lib/contender/copy_on_write_structure.rb', line 59

def initialize(*args, &block)
  @reference = Atomic.new(self.class.delegated_type.new(*args, &block))
end