Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/defgen/string_ext.rb

Instance Method Summary collapse

Instance Method Details

#upcase_firstObject



2
3
4
# File 'lib/defgen/string_ext.rb', line 2

def upcase_first
  self.dup.tap { |string| string[0] = string[0].upcase }
end