Sha256: 3e1a94b1ccb0735d0eb025248ca91bbf522b60da4f8fa5a2f7937b5d0500ce09

Contents?: true

Size: 733 Bytes

Versions: 17

Compression:

Stored size: 733 Bytes

Contents

# frozen_string_literal: true

module ConvenientService
  module Utils
    module Module
      class IncludeModule < Support::Command
        ##
        # @!attribute [r] mod
        #   @return [Module]
        #
        attr_reader :mod

        ##
        # @!attribute [r] other_mod
        #   @return [Module]
        #
        attr_reader :other_mod

        ##
        # @param mod [Module]
        # @param other_mod [Module]
        # @return [void]
        #
        def initialize(mod, other_mod)
          @mod = mod
          @other_mod = other_mod
        end

        ##
        # @return [Boolean]
        #
        def call
          mod.included_modules.include?(other_mod)
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
convenient_service-0.19.1 lib/convenient_service/utils/module/include_module.rb
convenient_service-0.19.0 lib/convenient_service/utils/module/include_module.rb
convenient_service-0.18.0 lib/convenient_service/utils/module/include_module.rb
convenient_service-0.17.0 lib/convenient_service/utils/module/include_module.rb
convenient_service-0.16.0 lib/convenient_service/utils/module/include_module.rb
convenient_service-0.15.0 lib/convenient_service/utils/module/include_module.rb
convenient_service-0.14.0 lib/convenient_service/utils/module/include_module.rb
convenient_service-0.13.0 lib/convenient_service/utils/module/include_module.rb
convenient_service-0.12.0 lib/convenient_service/utils/module/include_module.rb
convenient_service-0.11.0 lib/convenient_service/utils/module/include_module.rb
convenient_service-0.10.1 lib/convenient_service/utils/module/include_module.rb
convenient_service-0.10.0 lib/convenient_service/utils/module/include_module.rb
convenient_service-0.9.0 lib/convenient_service/utils/module/include_module.rb
convenient_service-0.8.0 lib/convenient_service/utils/module/include_module.rb
convenient_service-0.7.0 lib/convenient_service/utils/module/include_module.rb
convenient_service-0.6.0 lib/convenient_service/utils/module/include_module.rb
convenient_service-0.5.0 lib/convenient_service/utils/module/include_module.rb