Sha256: 788867edae212e6943122c62c5ea1e38619047a362effd8211020c4891bfaf0b

Contents?: true

Size: 222 Bytes

Versions: 21

Compression:

Stored size: 222 Bytes

Contents

require 'forwardable'

module Uber
  module Delegates
    def delegates(model, *names)
      mod = Module.new do
        extend Forwardable
        def_delegators model, *names
      end
      include mod
    end
  end
end

Version data entries

21 entries across 21 versions & 4 rubygems

Version Path
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/uber-0.1.0/lib/uber/delegates.rb
fluent-plugin-google-cloud-logging-on-prem-0.1.0 vendor/ruby/3.1.0/gems/uber-0.1.0/lib/uber/delegates.rb
uber-0.1.0 lib/uber/delegates.rb
garcun-0.1.1 lib/garcon/utility/uber/delegates.rb
uber-0.0.15 lib/uber/delegates.rb
uber-0.0.14 lib/uber/delegates.rb
garcun-0.1.0 lib/garcon/utility/uber/delegates.rb
garcun-0.0.9 lib/garcon/utility/uber/delegates.rb
garcun-0.0.8 lib/garcon/utility/uber/delegates.rb
garcun-0.0.7 lib/garcon/utility/uber/delegates.rb
garcun-0.0.6 lib/garcon/utility/uber/delegates.rb
garcun-0.0.5 lib/garcon/utility/uber/delegates.rb
garcun-0.0.4 lib/garcon/utility/uber/delegates.rb
garcun-0.0.3 lib/garcon/utility/uber/delegates.rb
garcun-0.0.2 lib/garcon/utility/uber/delegates.rb
uber-0.0.13 lib/uber/delegates.rb
uber-0.0.12 lib/uber/delegates.rb
uber-0.0.11 lib/uber/delegates.rb
uber-0.0.10 lib/uber/delegates.rb
uber-0.0.9 lib/uber/delegates.rb