Module: Dhall::Parser::PosixEnvironmentVariableCharacter
- Defined in:
- lib/dhall/parser.rb
Constant Summary collapse
- ESCAPES =
Dhall::Import::EnvironmentVariable::ESCAPES
Instance Method Summary collapse
Instance Method Details
#value ⇒ Object
541 542 543 544 545 546 547 548 549 |
# File 'lib/dhall/parser.rb', line 541 def value if first&.string == "\\" ESCAPES.fetch(matches[1].string) { raise "Invalid escape: #{string}" }.encode("UTF-16BE") else string end end |