Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/replacer_bot/helpers.rb

Instance Method Summary collapse

Instance Method Details

#titlecaseObject



2
3
4
5
6
7
# File 'lib/replacer_bot/helpers.rb', line 2

def titlecase
  bits = self.split ''
  bits[0] = UnicodeUtils.upcase(bits[0])

  bits.join ''
end

#upcaseObject



9
10
11
# File 'lib/replacer_bot/helpers.rb', line 9

def upcase
  UnicodeUtils.upcase self
end