Sha256: 2072be2884f23b264a0acffa40f827783ae531832abc127065cdf8c489bcf3a4

Contents?: true

Size: 309 Bytes

Versions: 6

Compression:

Stored size: 309 Bytes

Contents

class Counter::Conditions
  attr_accessor :increment_conditions, :decrement_conditions

  def initialize
    @increment_conditions = []
    @decrement_conditions = []
  end

  def increment_if block
    increment_conditions << block
  end

  def decrement_if block
    decrement_conditions << block
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
counterwise-0.1.5 lib/counter/conditions.rb
counterwise-0.1.4 lib/counter/conditions.rb
counterwise-0.1.3 lib/counter/conditions.rb
counterwise-0.1.2 lib/counter/conditions.rb
counterwise-0.1.1 lib/counter/conditions.rb
counterwise-0.1.0 lib/counter/conditions.rb