module Hamster::ReadCopyUpdate
@private
Public Class Methods
new(content)
click to toggle source
# File lib/hamster/read_copy_update.rb, line 9 def initialize(content) @content = content @lock = Mutex.new end
Public Instance Methods
eql?(other)
click to toggle source
# File lib/hamster/read_copy_update.rb, line 14 def eql?(other) instance_of?(other.class) && @content.eql?(other.instance_variable_get(:@content)) end
Also aliased as: ==
Protected Instance Methods
transform() { |content| ... }
click to toggle source
# File lib/hamster/read_copy_update.rb, line 24 def transform @lock.synchronize do @content = yield(@content) end self end
Private Instance Methods
method_missing(name, *args, &block)
click to toggle source
# File lib/hamster/read_copy_update.rb, line 33 def method_missing(name, *args, &block) @content.send(name, *args, &block) rescue super end