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.8.6 lib/tracksperanto/returning.rb
tracksperanto-2.8.5 lib/tracksperanto/returning.rb
tracksperanto-2.8.4 lib/tracksperanto/returning.rb
tracksperanto-2.8.2 lib/tracksperanto/returning.rb
tracksperanto-2.8.1 lib/tracksperanto/returning.rb
tracksperanto-2.8.0 lib/tracksperanto/returning.rb
tracksperanto-2.7.0 lib/tracksperanto/returning.rb
tracksperanto-2.6.3 lib/tracksperanto/returning.rb
tracksperanto-2.6.2 lib/tracksperanto/returning.rb
tracksperanto-2.6.1 lib/tracksperanto/returning.rb
tracksperanto-2.6.0 lib/tracksperanto/returning.rb
tracksperanto-2.5.0 lib/tracksperanto/returning.rb
tracksperanto-2.4.1 lib/tracksperanto/returning.rb
tracksperanto-2.3.3 lib/tracksperanto/returning.rb
tracksperanto-2.3.2 lib/tracksperanto/returning.rb
tracksperanto-2.3.1 lib/tracksperanto/returning.rb
tracksperanto-2.3.0 lib/tracksperanto/returning.rb
tracksperanto-2.2.4 lib/tracksperanto/returning.rb
tracksperanto-2.2.2 lib/tracksperanto/returning.rb
tracksperanto-2.2.0 lib/tracksperanto/returning.rb