Sha256: 4975745cb3e56c85becad5c7f8120095f458e67ea74ef976d622e4ef6f6fb920

Contents?: true

Size: 320 Bytes

Versions: 1

Compression:

Stored size: 320 Bytes

Contents

module FilterParam
  module Operators
    class Group < Operator
      operator_tag :group

      def self.sql(expression)
        "(#{expression})"
      end

      def self.negated_sql(expression)
        "NOT (#{expression})"
      end
    end
  end
end

FilterParam::Operator.register(FilterParam::Operators::Group)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
filter_param-0.1.2 lib/filter_param/operators/group.rb