lib/riak/crdt/inner_counter.rb in riak-client-2.2.0.pre1 vs lib/riak/crdt/inner_counter.rb in riak-client-2.2.0

- old
+ new

@@ -1,8 +1,8 @@ module Riak module Crdt - # The {InnerCounter} lives inside a {Map}, or an {InnerMap} inside of a + # The {InnerCounter} lives inside a {Map}, or an {InnerMap} inside of a # {Map}, and is accessed through a {TypedCollection}. # # Much like the {Riak::Crdt::Counter}, it provides an integer value that can # be incremented and decremented. class InnerCounter @@ -19,13 +19,13 @@ # The parent of this counter. # # @api private attr_reader :parent - + # @api private - def initialize(parent, value=0) + def initialize(parent, value = 0) @parent = parent @value = value end # Increment the counter. @@ -52,10 +52,10 @@ yield batcher increment batcher.accumulator end - + def pretty_print(pp) pp.object_group self do pp.breakable pp.pp value end