instance method
interpolate
Ruby on Rails edge
Since edge Private — implementation detail, not part of the public APISignature
interpolate(value, envs)
No documentation comment.
Parameters
-
valuereq -
envsreq
Source
# File activesupport/lib/active_support/dot_env_configuration.rb, line 98
def interpolate(value, envs)
value.gsub(/\$\{([A-Za-z_][A-Za-z0-9_]*)\}/) { envs[$1] || "" }
end
Defined in activesupport/lib/active_support/dot_env_configuration.rb line 98
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::DotEnvConfiguration