Sha256: 75cb66a6e61e05a84d5edaa592ff6786bf21050895bf9599c6eb4984c9a28f31

Contents?: true

Size: 581 Bytes

Versions: 3

Compression:

Stored size: 581 Bytes

Contents

# frozen_string_literal: true

module DeepCover
  Tools = Module.new

  require_relative 'tools/require_relative_dir'
  extend Tools::RequireRelativeDir
  require_relative 'tools/silence_warnings'
  extend Tools::SilenceWarnings
  require_relative_dir 'tools'

  # The functions defined in the submodules of Tools can be accessed
  # either by extending the desired module, or all of them by extending
  # Tools, or by calling them directly Tool.my_function.
  module Tools
    constants.each do |module_name|
      include const_get(module_name)
    end
    extend self
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
deep-cover-0.2.0 lib/deep_cover/tools.rb
deep-cover-0.1.16 lib/deep_cover/tools.rb
deep-cover-0.1.15 lib/deep_cover/tools.rb