Sha256: 237676eae261c0fe9ca5e649d7b75919af72c8440ef597e2c39d6534800778e0
Contents?: true
Size: 925 Bytes
Versions: 13
Compression:
Stored size: 925 Bytes
Contents
# -- # Copyright (C) 2008-2009 10gen Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ++ module XGen module Mongo module Driver # JavaScript code to be evaluated by MongoDB class Code < String # Hash mapping identifiers to their values attr_accessor :scope def initialize(code, scope={}) super(code) @scope = scope end end end end end
Version data entries
13 entries across 13 versions & 2 rubygems