instance method
downcase_first
Ruby on Rails 7.2.3
Since v7.1.6Signature
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