Ruby 3 · Basics Handle nil safely &. calls a method only if the receiver is not nil. city = user&.dig(:address, :city) Official Ruby 3 documentation More basics commands Print and interpolateUse hashes and symbolsTransform arraysLoop with an indexBranchDefine a method with keyword arguments All basics commands · Ruby 3 cheatsheet ← Define a method with keyword argumentsCommon string methods →