Sha256: 39e836c88a85e10e39385a188178c50265430b6f8c6361064fccb4bc9418f1ed
Contents?: true
Size: 676 Bytes
Versions: 27
Compression:
Stored size: 676 Bytes
Contents
# encoding: utf-8 module Origin # Adds macro behaviour for adding symbol methods. module Macroable # Adds a method on Symbol for convenience in where queries for the # provided operators. # # @example Add a symbol key. # key :all, "$all # # @param [ Symbol ] name The name of the method. # @param [ Symbol ] strategy The merge strategy. # @param [ String ] operator The MongoDB operator. # @param [ String ] additional The additional MongoDB operator. # # @since 1.0.0 def key(name, strategy, operator, additional = nil, &block) ::Symbol.add_key(name, strategy, operator, additional, &block) end end end
Version data entries
27 entries across 26 versions & 4 rubygems