instance method unquote

Ruby on Rails edge

Since edge Private — implementation detail, not part of the public API

Signature

unquote(value)

No documentation comment.

Parameters

value req
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

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close