Sha256: 43938482cd45fe112281bc9bded5eab7352a24845ee38bcbb0b0257a286a84fb

Contents?: true

Size: 191 Bytes

Versions: 1

Compression:

Stored size: 191 Bytes

Contents

class String
	def capitalize_first
		"#{self[0,1].upcase}#{self[1,self.length]}"
	end
	def cap_first
		self.capitalize_first
	end
	def split_words
		self.gsub(/ +/, ' ').strip.split
	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gamefic-0.2.0 lib/gamefic/core_ext/string.rb