Sha256: 4fc06e44d13bf1ecda2144730bc51a023b7f6597bf030220ef724de97f433274

Contents?: true

Size: 370 Bytes

Versions: 4

Compression:

Stored size: 370 Bytes

Contents

# encoding: utf-8

module PredicateComparableSpecs
  class Object
    include Immutable
    include Function::Comparable

    attr_reader :left, :right

    def self.operation
      :==
    end

    def self.inverse
      self
    end

    def initialize(left, right)
      @left, @right = left, right
    end

  end # class Object
end # module PredicateComparableSpecs

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
veritas-0.0.7 spec/unit/veritas/function/comparable/fixtures/classes.rb
veritas-0.0.6 spec/unit/veritas/function/comparable/fixtures/classes.rb
veritas-0.0.5 spec/unit/veritas/function/comparable/fixtures/classes.rb
veritas-0.0.4 spec/unit/veritas/function/comparable/fixtures/classes.rb