Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/defgen/string_ext.rb
Instance Method Summary collapse
Instance Method Details
#upcase_first ⇒ Object
2 3 4 |
# File 'lib/defgen/string_ext.rb', line 2 def upcase_first self.dup.tap { |string| string[0] = string[0].upcase } end |