Method: Ebay::Inflections#upcase_first_character
- Defined in:
- lib/ebay/inflections.rb
#upcase_first_character(string) ⇒ Object
13 14 15 |
# File 'lib/ebay/inflections.rb', line 13 def upcase_first_character(string) string.sub(/^(.)/) { $1.upcase } end |