Module: Dhall::Parser::DoubleQuoteEscaped
- Defined in:
- lib/dhall/parser.rb
Constant Summary collapse
- ESCAPES =
{ "\"" => "\"", "$" => "$", "\\" => "\\", "/" => "/", "b" => "\b", "f" => "\f", "n" => "\n", "r" => "\r", "t" => "\t" }.freeze
Instance Method Summary collapse
Instance Method Details
#value ⇒ Object
269 270 271 272 273 |
# File 'lib/dhall/parser.rb', line 269 def value ESCAPES.fetch(string) do [string[1..-1]].pack("H*").force_encoding("UTF-16BE") end end |