lib/anyway/optparse_config.rb in anyway_config-2.1.0 vs lib/anyway/optparse_config.rb in anyway_config-2.2.0

- old
+ new

@@ -68,16 +68,14 @@ end end end def option_parser - @option_parser ||= begin - OptionParserBuilder.call(self.class.option_parser_options) do |key, val| - write_config_attr(key, val) - end.tap do |parser| - self.class.option_parser_extensions.map do |extension| - extension.call(parser, self) - end + @option_parser ||= OptionParserBuilder.call(self.class.option_parser_options) do |key, val| + write_config_attr(key, val) + end.tap do |parser| + self.class.option_parser_extensions.map do |extension| + extension.call(parser, self) end end end def parse_options!(options)