Module: Dhall::Parser::DoubleQuoteLiteral

Defined in:
lib/dhall/parser.rb

Instance Method Summary collapse

Instance Method Details

#valueObject



254
255
256
257
258
259
260
261
262
263
# File 'lib/dhall/parser.rb', line 254

def value
  TextLiteral.for(
    *captures(:double_quote_chunk)
    .map(&:value)
    .chunk { |s| s.is_a?(String) }
    .flat_map do |(strs, group)|
      strs ? group.join : group
    end
  )
end