Module: Dhall::Parser::PathComponent

Defined in:
lib/dhall/parser.rb

Instance Method Summary collapse

Instance Method Details

#value(escaper = :itself.to_proc) ⇒ Object



651
652
653
654
655
656
657
# File 'lib/dhall/parser.rb', line 651

def value(escaper=:itself.to_proc)
	if captures.key?(:quoted_path_component)
		escaper.call(capture(:quoted_path_component).value)
	else
		capture(:unquoted_path_component).value
	end
end