class Riak::Crdt::InnerRegister
Attributes
parent[R]
Public Class Methods
delete()
click to toggle source
# File lib/riak/crdt/inner_register.rb, line 19 def self.delete Operation::Delete.new.tap do |op| op.type = :register end end
new(parent, *args, &block)
click to toggle source
Calls superclass method
# File lib/riak/crdt/inner_register.rb, line 6 def initialize(parent, *args, &block) @parent = parent super(*args, &block) freeze end
update(value)
click to toggle source
# File lib/riak/crdt/inner_register.rb, line 12 def self.update(value) Operation::Update.new.tap do |op| op.value = value op.type = :register end end