Sha256: 12dd11cc800d3d962326b0cadbce1a687dbd72c2691dc2b92d3aecf43e752cb6
Contents?: true
Size: 400 Bytes
Versions: 2
Compression:
Stored size: 400 Bytes
Contents
class SymbolOperator attr_reader :field, :operator def initialize(field, operator, options={}) @field, @operator = field, operator end unless method_defined?(:initialize) end class Symbol %w(gt lt gte lte ne in nin mod all size exists asc desc).each do |operator| define_method(operator) do SymbolOperator.new(self, operator) end unless method_defined?(operator) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
plucky-0.1.1 | lib/plucky/extensions.rb |
plucky-0.1 | lib/plucky/extensions.rb |