Class: Object

Inherits:
BasicObject
Defined in:
lib/mongo/util/support.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#returning(value) {|value| ... } ⇒ Object

:nodoc:

Yields:

  • (value)


21
22
23
24
# File 'lib/mongo/util/support.rb', line 21

def returning(value)
  yield value
  value
end