palkan / anyway_config

Configuration library for Ruby gems and applications
MIT License
778 stars 52 forks source link

feature: allow to pass raw hash as defaults settings #10

Closed dsalahutdinov closed 6 years ago

dsalahutdinov commented 6 years ago

Hi!

Want to support somethings like this to allow to pass options, which will be applied after defaults for new instance of config Usage looks like this:

Sniffer::Config.new(
  enabled: true,
  storage: {capacity: 500}
)

Will be used here in https://github.com/aderyabin/sniffer/pull/35

dsalahutdinov commented 6 years ago

It's done

palkan commented 6 years ago

Thanks!

Released as 1.1.3