Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/ext/string.rb

Instance Method Summary collapse

Instance Method Details

#capitalizeObject



23
24
25
# File 'lib/ext/string.rb', line 23

def capitalize
  Unicode::capitalize(self)
end

#capitalize!Object



27
28
29
# File 'lib/ext/string.rb', line 27

def capitalize!
  self.replace capitalize
end

#downcaseObject



7
8
9
# File 'lib/ext/string.rb', line 7

def downcase
  Unicode::downcase(self)
end

#downcase!Object



11
12
13
# File 'lib/ext/string.rb', line 11

def downcase!
  self.replace downcase
end

#upcaseObject



15
16
17
# File 'lib/ext/string.rb', line 15

def upcase
  Unicode::upcase(self)
end

#upcase!Object



19
20
21
# File 'lib/ext/string.rb', line 19

def upcase!
  self.replace upcase
end