Browse Source

TODO undef_method

main
pvincent 2 months ago
parent
commit
7ca45ce3a7
  1. 2
      lib/hot_constants/hot_constants.rb

2
lib/hot_constants/hot_constants.rb

@ -7,7 +7,7 @@ module HotConstants
class << self class << self
def initialize def initialize
env_sample = Dotenv.parse('.env.sample')
env_sample = Dotenv.parse('.env.sample') # TODO: able to detect add/remove, then either call define_method or undef_method!
env_sample.each do |key, value| env_sample.each do |key, value|
dkey = key.downcase dkey = key.downcase
method = method_from_value(value) method = method_from_value(value)

Loading…
Cancel
Save