vendor/bundle/ruby/2.5.0/gems/jekyll-2.4.0/lib/jekyll/url.rb
# Internal: Generate the URL by replacing all placeholders with their
# respective values
#
# Returns the _unsanitizied_ String URL
Generate the URL by replacing all placeholders with their
respective values

Returns the _unsanitizied_ String URL
Generate the URL by replacing all placeholders with their respective values Returns the _unsanitizied_ String URL
def generate_url
      @placeholders.inject(@template) do |result, token|
        result.gsub(/:#{token.first}/, self.class.escape_path(token.last))
      end
    end
def generate_url @placeholders . inject ( @template ) do | result , token | result . gsub ( / : #{ token . first } / , self . class . escape_path ( token . last ) ) end end
Internal: Generate the URL by replacing all placeholders with their
respective values
Internal : Generate the URL by replacing all placeholders with their respective values