instance method downcase_first

Ruby on Rails 7.2.3

Since v7.1.6

Available in: v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

downcase_first()

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.

Source
# File activesupport/lib/active_support/core_ext/string/inflections.rb, line 284
  def downcase_first
    ActiveSupport::Inflector.downcase_first(self)
  end

Defined in activesupport/lib/active_support/core_ext/string/inflections.rb line 284 · View on GitHub · Improve this page · Find usages on GitHub

Defined in String

Type at least 2 characters to search.

↑↓ navigate · open · esc close