Sha256: c68147dfe30f5a7f9a1c226603ba0bfb5b98d9711301a9049d4f6503b6dccd36

Contents?: true

Size: 156 Bytes

Versions: 42

Compression:

Stored size: 156 Bytes

Contents

# -*- encoding : utf-8 -*-
module Tracksperanto::Returning
  # The "returning" idiom copied from ActiveSupport
  def returning(r)
    yield(r); r
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
tracksperanto-3.5.9 lib/tracksperanto/returning.rb
tracksperanto-3.5.8 lib/tracksperanto/returning.rb
tracksperanto-3.5.7 lib/tracksperanto/returning.rb
tracksperanto-3.5.6 lib/tracksperanto/returning.rb
tracksperanto-3.5.5 lib/tracksperanto/returning.rb
tracksperanto-3.5.4 lib/tracksperanto/returning.rb
tracksperanto-3.5.2 lib/tracksperanto/returning.rb
tracksperanto-3.5.1 lib/tracksperanto/returning.rb
tracksperanto-3.5.0 lib/tracksperanto/returning.rb
tracksperanto-3.4.1 lib/tracksperanto/returning.rb
tracksperanto-3.4.0 lib/tracksperanto/returning.rb
tracksperanto-3.3.13 lib/tracksperanto/returning.rb
tracksperanto-3.3.12 lib/tracksperanto/returning.rb
tracksperanto-3.3.11 lib/tracksperanto/returning.rb
tracksperanto-3.3.10 lib/tracksperanto/returning.rb
tracksperanto-3.3.9 lib/tracksperanto/returning.rb
tracksperanto-3.3.8 lib/tracksperanto/returning.rb
tracksperanto-3.3.7 lib/tracksperanto/returning.rb
tracksperanto-3.3.6 lib/tracksperanto/returning.rb
tracksperanto-3.3.0.pre lib/tracksperanto/returning.rb