module Dhall::Parser::UrlPath

Public Instance Methods

value() click to toggle source
# File lib/dhall/parser.rb, line 661
def value
        "/" + matches.map { |pc|
                if pc.captures.key?(:path_component)
                        # We escape here because ruby stdlib URI just stores path unparsed
                        pc.value(Util.method(:uri_escape))
                else
                        pc.string[1..-1]
                end
        }.join("/")
end