Skip to content

Commit

Permalink
Add #each_key method
Browse files Browse the repository at this point in the history
  • Loading branch information
n-rodriguez committed Jan 12, 2024
1 parent 28ca3b8 commit 01a33a2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/active_settings/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,19 @@
# 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)
marshal_dump.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
Expand Down Expand Up @@ -157,4 +163,5 @@ def auto_type(val)
# rubocop:enable Style/RescueModifier

end
# rubocop:enable Metrics/ClassLength
end

0 comments on commit 01a33a2

Please sign in to comment.