Sha256: 31947f78ed03c9909aad3943c3139b67838e92db7b85f41d56316580abadbf8e

Contents?: true

Size: 746 Bytes

Versions: 1

Compression:

Stored size: 746 Bytes

Contents

require "matchd/version"

module Matchd
  autoload :Config,   "matchd/config"
  autoload :Control,  "matchd/control"
  autoload :Glue,     "matchd/glue"
  autoload :Helpers,  "matchd/helpers"
  autoload :Registry, "matchd/registry"
  autoload :Response, "matchd/response"
  autoload :Rule,     "matchd/rule"
  autoload :Server,   "matchd/server"

  def self.configure(&block)
    Config.configure(&block)
  end

  def self.configure_from_file!(config_file = Config::DEFAULT_CONFIG_FILE)
    Config.configure do |config|
      YAML.load_file(config_file).each do |k, v|
        config.public_send("#{k}=", v)
      end
    end
  end

  def self.root
    File.expand_path('..', __dir__)
  end

  extend Response::Factory
  extend Rule::Factory
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
matchd-0.1.0 lib/matchd.rb