instance method
unquote
Ruby on Rails edge
Since edge Private — implementation detail, not part of the public APISignature
unquote(value)
No documentation comment.
Parameters
-
valuereq
Source
# File activesupport/lib/active_support/dot_env_configuration.rb, line 84
def unquote(value)
if value.start_with?('"') && value.end_with?('"')
value[1..-2].gsub('\n', "\n").gsub('\"', '"')
elsif value.start_with?("'") && value.end_with?("'")
value[1..-2]
else
value
end
end
Defined in activesupport/lib/active_support/dot_env_configuration.rb line 84
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::DotEnvConfiguration