diff --git a/lib/active_settings/config.rb b/lib/active_settings/config.rb index 6b0364e..4bf0c66 100644 --- a/lib/active_settings/config.rb +++ b/lib/active_settings/config.rb @@ -4,6 +4,7 @@ # See: https://github.com/rubyconfig/config/blob/master/lib/config/options.rb module ActiveSettings + # rubocop:disable Metrics/ClassLength class Config < OpenStruct def each(*args, &block) @@ -11,6 +12,11 @@ def each(*args, &block) end + def each_key(*args, &block) + marshal_dump.each_key(*args, &block) + end + + def collect(*args, &block) marshal_dump.collect(*args, &block) end @@ -157,4 +163,5 @@ def auto_type(val) # rubocop:enable Style/RescueModifier end + # rubocop:enable Metrics/ClassLength end