From f20a423e96346a06c36bbb0bdeb3bb7a976ce4b3 Mon Sep 17 00:00:00 2001 From: Zohir Tamda <120991635+tamdaz@users.noreply.github.com> Date: Mon, 6 Jan 2025 13:38:31 +0100 Subject: [PATCH] Add the `previous_def` keyword. (#812) --- docs/crystal_for_rubyists/README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/crystal_for_rubyists/README.md b/docs/crystal_for_rubyists/README.md index 2b5d78f77..1d513a78d 100644 --- a/docs/crystal_for_rubyists/README.md +++ b/docs/crystal_for_rubyists/README.md @@ -382,16 +382,16 @@ Crystal added some new keywords, these can still be used as method names, but ne #### Available keywords ```text -abstract do if nil? select union -alias else in of self unless -as elsif include out sizeof until -as? end instance_sizeof pointerof struct verbatim -asm ensure is_a? private super when -begin enum lib protected then while -break extend macro require true with -case false module rescue type yield -class for next responds_to? typeof -def fun nil return uninitialized +abstract do if nil? return uninitialized +alias else in of select union +as elsif include out self unless +as? end instance_sizeof pointerof sizeof until +asm ensure is_a? previous_def struct verbatim +begin enum lib private super when +break extend macro protected then while +case false module require true with +class for next rescue type yield +def fun nil responds_to? typeof ``` ### Private methods