Sha256: 8fd44c94c1ed3cdf0f4497874cb2efdb90635e50c4a065f91694ab9de8ee16aa

Contents?: true

Size: 336 Bytes

Versions: 6

Compression:

Stored size: 336 Bytes

Contents

class Predicate
  module In
    include Expr

    def priority
      80
    end

    def identifier
      self[1]
    end

    def values
      self[2]
    end

    def free_variables
      @free_variables ||= identifier.free_variables
    end

    def constant_variables
      values.size == 1 ? free_variables : []
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
predicate-1.2.0 lib/predicate/nodes/in.rb
predicate-1.1.3 lib/predicate/nodes/in.rb
predicate-1.1.2 lib/predicate/nodes/in.rb
predicate-1.1.1 lib/predicate/nodes/in.rb
predicate-1.1.0 lib/predicate/nodes/in.rb
predicate-1.0.0 lib/predicate/nodes/in.rb