Module: Eye::Patch

Defined in:
lib/eye/patch/version.rb,
lib/eye/patch.rb

Defined Under Namespace

Classes: Application, Config, Settings

Constant Summary collapse

VERSION =
"0.0.2"

Class Method Summary collapse

Class Method Details

.parse(filename) ⇒ Object



11
12
13
14
15
16
17
18
19
20
# File 'lib/eye/patch.rb', line 11

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