Class: QuietQuality::Config::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/quiet_quality/config/parser.rb

Constant Summary collapse

InvalidConfig =
Class.new(Config::Error)

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ Parser

Returns a new instance of Parser.



6
7
8
# File 'lib/quiet_quality/config/parser.rb', line 6

def initialize(path)
  @path = path
end

Instance Method Details

#parsed_optionsObject



10
11
12
13
14
15
16
# File 'lib/quiet_quality/config/parser.rb', line 10

def parsed_options
  @_parsed_options ||= ParsedOptions.new.tap do |opts|
    store_default_tools(opts)
    store_global_options(opts)
    store_tool_options(opts)
  end
end