Module: Dhall::Parser::DoubleQuoteLiteral

Defined in:
lib/dhall/parser.rb

Instance Method Summary collapse

Instance Method Details

#valueObject



248
249
250
251
252
253
254
255
256
257
# File 'lib/dhall/parser.rb', line 248

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