11 lines
232 B
Ruby
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)
|