Module: Zmanim::Util::TextHelper
- Included in:
- HebrewCalendar::HebrewDateFormatter, Limudim::LimudimFormatter
- Defined in:
- lib/zmanim/util/text_helper.rb
Instance Method Summary collapse
Instance Method Details
#titleize(string) ⇒ Object
3 4 5 |
# File 'lib/zmanim/util/text_helper.rb', line 3 def titleize(string) string.to_s.gsub(/_/,' ').scan(/\w+/).map{|w| w[0].upcase + w[1..-1]}.join(' ') end |