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