Module: Hamster::ReadCopyUpdate
- Extended by:
- Forwardable
- Included in:
- MutableHash, MutableQueue, MutableSet, MutableStack
- Defined in:
- lib/hamster/read_copy_update.rb
Instance Method Summary
(collapse)
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
- (Object) method_missing(name, *args, &block)
34
35
36
|
# File 'lib/hamster/read_copy_update.rb', line 34
def method_missing(name, *args, &block)
@content.send(name, *args, &block) rescue super
end
|
Instance Method Details
- (Boolean) eql?(other)
15
16
17
|
# File 'lib/hamster/read_copy_update.rb', line 15
def eql?(other)
instance_of?(other.class) && @content.eql?(other.instance_variable_get(:@content))
end
|
- (Object) initialize(content)
10
11
12
13
|
# File 'lib/hamster/read_copy_update.rb', line 10
def initialize(content)
@content = content
@lock = Mutex.new
end
|