Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/ext/string.rb
Instance Method Summary collapse
- #capitalize ⇒ Object
- #capitalize! ⇒ Object
- #downcase ⇒ Object
- #downcase! ⇒ Object
- #upcase ⇒ Object
- #upcase! ⇒ Object
Instance Method Details
#capitalize ⇒ Object
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 |
#downcase ⇒ Object
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 |
#upcase ⇒ Object
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 |