Skip to content

Commit f0ad490

Browse files
committed
Revert "Add Config::Options#split"
This reverts commit fc7f9b2.
1 parent fc7f9b2 commit f0ad490

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

lib/config/options.rb

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ def reload_env!
3737
hash = Hash.new
3838

3939
ENV.each do |variable, value|
40-
keys = split(variable)
40+
keys = variable.to_s.split(Config.env_separator)
4141

42-
prefix = split(Config.env_prefix || Config.const_name)
42+
prefix = (Config.env_prefix || Config.const_name).split(Config.env_separator)
4343

4444
next if keys.shift(prefix.size) != prefix
4545

@@ -154,10 +154,6 @@ def []=(param, value)
154154

155155
protected
156156

157-
def split(string)
158-
string.to_s.split(Config.env_separator)
159-
end
160-
161157
def descend_array(array)
162158
array.map do |value|
163159
if value.instance_of? Config::Options

0 commit comments

Comments
 (0)