69b49d899a
Add deep_dup as a depend (it'll be removed in the next commit) Make "EXPECTED_KEYS" a constant in the main module because every parser depends on access to the information through a common interface Move sorting the hash into sections into a util module we can lazy load Changed a bunch of things around to depend on the new files, classes, and modules
16 lines
291 B
Ruby
16 lines
291 B
Ruby
# frozen_string_literal: true
|
|
|
|
module ConfigMan
|
|
module Modules
|
|
module API
|
|
def self.populate_defaults
|
|
{
|
|
'api_endpoint' => 'https://api.example.com',
|
|
'api_key' => 'your_api_key_here',
|
|
'rate_limit' => 1000
|
|
}
|
|
end
|
|
end
|
|
end
|
|
end
|