Top Level Namespace

Defined Under Namespace

Modules: Chimps Classes: Array, FalseClass, Hash, NilClass, Numeric, Object, String, TrueClass

Instance Method Summary collapse

Instance Method Details

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

Yields:

  • (obj)


1
2
3
4
# File 'lib/chimps/utils/extensions.rb', line 1

def returning obj
  yield obj
  obj
end