Module: Dhall::Parser::DoubleQuoteLiteral
- Defined in:
- lib/dhall/parser.rb
Instance Method Summary collapse
Instance Method Details
#value ⇒ Object
234 235 236 237 238 239 240 241 242 243 |
# File 'lib/dhall/parser.rb', line 234 def value TextLiteral.for( *captures(:double_quote_chunk) .map(&:value) .chunk { |s| s.is_a?(String) } .flat_map do |(strs, group)| strs ? group.map { |s| s.encode("UTF-16BE") }.join : group end ) end |