Module: Dhall::Parser::PathComponent

Defined in:
lib/dhall/parser.rb

Instance Method Summary collapse

Instance Method Details

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



620
621
622
623
624
625
626
# File 'lib/dhall/parser.rb', line 620

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