Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/unicase.rb
Instance Method Summary collapse
- #first_unicode_capitalize ⇒ Object
- #first_unicode_lowercase ⇒ Object
- #unicode_lowercase ⇒ Object
- #unicode_uppercase ⇒ Object
Instance Method Details
#first_unicode_capitalize ⇒ Object
23 24 25 26 27 28 29 |
# File 'lib/unicase.rb', line 23 def first_unicode_capitalize if self =~ /\A(.)/um Unicase::Uppercase[$1] + $' else self.dup end end |
#first_unicode_lowercase ⇒ Object
31 32 33 34 35 36 37 |
# File 'lib/unicase.rb', line 31 def first_unicode_lowercase if self =~ /\A(.)/um Unicase::Lowercase[$1] + $' else self.dup end end |