Class: ReeString::UpcaseFirst
- Inherits:
-
Object
- Object
- ReeString::UpcaseFirst
- Includes:
- Ree::FnDSL
- Defined in:
- lib/ree_lib/packages/ree_string/package/ree_string/functions/upcase_first.rb
Instance Method Summary collapse
Instance Method Details
#call(string) ⇒ Object
16 17 18 |
# File 'lib/ree_lib/packages/ree_string/package/ree_string/functions/upcase_first.rb', line 16 def call(string) string.length > 0 ? string[0].upcase.concat(string[1..-1]) : "" end |