Module: Dhall::Parser::PathComponent

Defined in:
lib/dhall/parser.rb

Instance Method Summary collapse

Instance Method Details

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



631
632
633
634
635
636
637
# File 'lib/dhall/parser.rb', line 631

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