Use do ... end for multiline block
This commit is contained in:
parent
a23e94ad48
commit
362fcf28f0
|
@ -43,9 +43,9 @@ module Jekyll
|
||||||
#
|
#
|
||||||
# Returns the _unsanitizied_ String URL
|
# Returns the _unsanitizied_ String URL
|
||||||
def generate_url
|
def generate_url
|
||||||
@placeholders.inject(@template) { |result, token|
|
@placeholders.inject(@template) do |result, token|
|
||||||
result.gsub(/:#{token.first}/, token.last)
|
result.gsub(/:#{token.first}/, token.last)
|
||||||
}
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Returns a sanitized String URL
|
# Returns a sanitized String URL
|
||||||
|
|
Loading…
Reference in New Issue