10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# File 'lib/confuse/source.rb', line 10
def create(options = {})
path = options[:path]
type = if path
path[path.rindex('.') + 1, path.length].to_sym
end
type ||= options[:type]
if type
types[type].new(options)
else
Env.new(options)
end
end
|