Sha256: e97975444b21b51b6cc9a85984fe918fc32591c81378bf6ca2da0fbb54fc4d42

Contents?: true

Size: 237 Bytes

Versions: 1

Compression:

Stored size: 237 Bytes

Contents

require 'forwardable'

module Extensions
  module Module
    def self.prepended(base)
      base.include Forwardable
    end

    def delegate(*methods, to:)
      super methods => to
    end
  end
end

Module.prepend Extensions::Module

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
subshift-0.0.2 lib/extensions/module.rb