flant/superhosting

View on GitHub
lib/superhosting/composite_mapper/base.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Superhosting
  module CompositeMapper
    class Base
      attr_accessor :etc, :lib, :web

      def initialize(etc_mapper:, lib_mapper:, web_mapper:)
        self.etc = etc_mapper
        self.lib = lib_mapper
        self.web = web_mapper
      end

      def method_missing(m, *args, &block)
        etc.send(m, *args, &block)
      end
    end
  end
end