Class: Object

Inherits:
BasicObject
Defined in:
lib/dm-machinist.rb

Overview

From ActiveSupport

Instance Method Summary collapse

Instance Method Details

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

Yields:

  • (value)


17
18
19
20
# File 'lib/dm-machinist.rb', line 17

def returning(value)
  yield(value)
  value
end