Sha256: d771042c1a2678c149e3b46cf77c281eee5771626e00c8ee320a82448957858b

Contents?: true

Size: 288 Bytes

Versions: 9

Compression:

Stored size: 288 Bytes

Contents

module Cassanity
  def self.Decrement(*args)
    Decrement.new(*args)
  end

  class Decrement < Operator
    # Public: Returns an decrement instance
    def initialize(value = 1)
      raise ArgumentError.new("value cannot be nil") if value.nil?

      super :-, value
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
cassanity-0.6.0 lib/cassanity/decrement.rb
cassanity-0.6.0.beta5 lib/cassanity/decrement.rb
cassanity-0.6.0.beta4 lib/cassanity/decrement.rb
cassanity-0.6.0.beta3 lib/cassanity/decrement.rb
cassanity-0.6.0.beta2 lib/cassanity/decrement.rb
cassanity-0.6.0.beta1 lib/cassanity/decrement.rb
cassanity-0.5.1 lib/cassanity/decrement.rb
cassanity-0.5.0 lib/cassanity/decrement.rb
cassanity-0.4.0 lib/cassanity/decrement.rb