Sha256: cec5de0d8b6b02b512c24f765538f22b17fe3d8589844943aa184998bfcf750d

Contents?: true

Size: 1015 Bytes

Versions: 6

Compression:

Stored size: 1015 Bytes

Contents

# frozen_string_literal: true

require_relative "module/class_method_defined"
require_relative "module/get_own_instance_method"
require_relative "module/get_own_const"
require_relative "module/has_own_instance_method"
require_relative "module/instance_method_defined"

module ConvenientService
  module Utils
    ##
    # @internal
    #   NOTE: `Class` is descendant of `Module`, that is why `Module` is more generic term.
    #   TODO: Better generic term for both `Module` and `Class`.
    #
    module Module
      class << self
        def class_method_defined?(...)
          ClassMethodDefined.call(...)
        end

        def get_own_instance_method(...)
          GetOwnInstanceMethod.call(...)
        end

        def get_own_const(...)
          GetOwnConst.call(...)
        end

        def has_own_instance_method?(...)
          HasOwnInstanceMethod.call(...)
        end

        def instance_method_defined?(...)
          InstanceMethodDefined.call(...)
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
convenient_service-0.4.0 lib/convenient_service/utils/module.rb
convenient_service-0.3.1 lib/convenient_service/utils/module.rb
convenient_service-0.3.0 lib/convenient_service/utils/module.rb
convenient_service-0.2.1 lib/convenient_service/utils/module.rb
convenient_service-0.2.0 lib/convenient_service/utils/module.rb
convenient_service-0.1.0 lib/convenient_service/utils/module.rb