Method: String#downcase_first
- Defined in:
- lib/active_support/core_ext/string/inflections.rb
permalink #downcase_first ⇒ Object
Converts the first character to lowercase.
'If they enjoyed The Matrix'.downcase_first # => "if they enjoyed The Matrix"
'I'.downcase_first # => "i"
''.downcase_first # => ""
See ActiveSupport::Inflector.downcase_first.
284 285 286 |
# File 'lib/active_support/core_ext/string/inflections.rb', line 284 def downcase_first ActiveSupport::Inflector.downcase_first(self) end |