Sha256: aefeb9aa4d0ff6c2755cb5ec45fc19975d9328af28bcaf5e7ca8b8037ec301e2

Contents?: true

Size: 128 Bytes

Versions: 33

Compression:

Stored size: 128 Bytes

Contents

module Tracksperanto::Returning
  # The "returning" idiom copied from ActiveSupport
  def returning(r)
    yield(r); r
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
tracksperanto-2.1.1 lib/tracksperanto/returning.rb
tracksperanto-2.1.0 lib/tracksperanto/returning.rb
tracksperanto-2.0.2 lib/tracksperanto/returning.rb
tracksperanto-2.0.1 lib/tracksperanto/returning.rb
tracksperanto-2.0.0 lib/tracksperanto/returning.rb
tracksperanto-1.9.9 lib/tracksperanto/returning.rb
tracksperanto-1.9.8 lib/tracksperanto/returning.rb
tracksperanto-1.9.6 lib/tracksperanto/returning.rb
tracksperanto-1.9.5 lib/tracksperanto/returning.rb
tracksperanto-1.9.4 lib/tracksperanto/returning.rb
tracksperanto-1.9.3 lib/tracksperanto/returning.rb
tracksperanto-1.9.2 lib/tracksperanto/returning.rb
tracksperanto-1.9.1 lib/tracksperanto/returning.rb