module Dhall::Parser::PathComponent

Public Instance Methods

value(escaper=:itself.to_proc) click to toggle source
# 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