mirror of
https://github.com/jekyll/jekyll.git
synced 2026-01-30 09:18:11 -05:00
Use do ... end for multiline block
This commit is contained in:
@@ -43,9 +43,9 @@ module Jekyll
|
||||
#
|
||||
# Returns the _unsanitizied_ String URL
|
||||
def generate_url
|
||||
@placeholders.inject(@template) { |result, token|
|
||||
@placeholders.inject(@template) do |result, token|
|
||||
result.gsub(/:#{token.first}/, token.last)
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
# Returns a sanitized String URL
|
||||
|
||||
Reference in New Issue
Block a user