Sha256: a2a0f092a45dcaba25b93d99e1bcc1f0aaf8829a0d2cdebbb1d6215c83397f3c

Contents?: true

Size: 688 Bytes

Versions: 5

Compression:

Stored size: 688 Bytes

Contents

# --
# Copyright (C) 2008-2010 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.
# ++

#:nodoc:
class Object

  #:nodoc:
  def returning(value)
    yield value
    value
  end

end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
mongo-0.19.1 lib/mongo/util/support.rb
mongo-0.19 lib/mongo/util/support.rb
kbaum-mongo-0.19 lib/mongo/util/support.rb
kbaum-mongo-0.18.3.2 lib/mongo/util/support.rb
kbaum-mongo-0.18.3p lib/mongo/util/support.rb