apache-config-generator/lib/apache/quoteize.rb

15 lines
238 B
Ruby
Raw Normal View History

2010-05-04 15:48:59 +00:00
module Apache
module Quoteize
def quoteize(*args)
args.collect do |arg|
case arg
when Symbol
arg.to_s.gsub('_', ' ')
else
%{"#{arg}"}
end
end
end
end
end