Sha256: 2f13dc7e8556ae9f64d1bd2f54a9d71f024451a66cc9c284b163709e4f725bb1
Contents?: true
Size: 490 Bytes
Versions: 11
Compression:
Stored size: 490 Bytes
Contents
module CloudSesame module Query module DSL module FieldAccessors def literal(name, *values, &block) name = name.to_sym if block_given? caller = block.binding.eval "self" options = _scope.context[:fields][name] node = Domain::Literal.new(name, options, caller)._eval(&block) values << node end _scope.children.field = name _scope.children._return = _return _scope.children.insert values end end end end end
Version data entries
11 entries across 11 versions & 1 rubygems