Module: Tracksperanto::Returning

Included in:
BufferIO
Defined in:
lib/tracksperanto/returning.rb

Instance Method Summary collapse

Instance Method Details

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

The “returning” idiom copied from ActiveSupport

Yields:

  • (r)


3
4
5
# File 'lib/tracksperanto/returning.rb', line 3

def returning(r)
  yield(r); r
end