1
0
Fork 0
This repository has been archived on 2021-01-06. You can view files and clone it, but cannot push or open issues or pull requests.
dennogumi.org-archive/_plugins/_capitalize_all.rb

11 lines
232 B
Ruby

require 'liquid'
require 'uri'
# Capitalize all words of the input
module CapitalizeAll
def capitalize_all(words)
return words.split(' ').map(&:capitalize).join(' ')
end
end
Liquid::Template.register_filter(CapitalizeAll)