Sha256: 824194e848cfe7ecedc0a3d537855e3b3882b71675ec8c1ee3d71f8909986089

Contents?: true

Size: 507 Bytes

Versions: 1

Compression:

Stored size: 507 Bytes

Contents

require "eye"

module Eye::Patch

  require "eye/patch/settings"
  require "eye/patch/config"
  require "eye/patch/application"
  require "eye/patch/version"

  def self.parse(filename)
    settings = Eye::Patch::Settings.new(filename)

    config = Eye::Config.new(
      Eye::Patch::Config.new(settings),
      Eye::Patch::Application.new(settings))
    config.validate!

    config
  end
end

module Eye::Controller::Load

  private

  def parse_config(filename)
    Eye::Patch.parse(filename)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
eye-patch-0.0.1 lib/eye/patch.rb