Class: String

Inherits:
Object show all
Defined in:
lib/rfm/utilities/core_ext.rb

Overview

Time

Direct Known Subclasses

Rfm::Metadata::ValueListItem

Instance Method Summary collapse

Instance Method Details

#title_caseObject


166
167
168
169
170
# File 'lib/rfm/utilities/core_ext.rb', line 166

def title_case
	self.gsub(/\w+/) do |word|
	  word.capitalize
	end
end