Hello! I'm not quite sure this is the right place to ask but I'd assume so. I'm having trouble learning ruby scripting. I've tried to look for sites or videos, but I can't find anything. Specifically, I can't find the definition to these " reserved words ". This is the list of words I found while searching which go under this name:
BEGIN class ensure nil self when
END def false not super while
alias defined? for or then yield
and do if redo true
begin else in rescue undef
break elsif module retry unless
case end next return until
I've found the definition of " class " and " def ", but nothing on the other words. If someone could explain to me what they do and an example of what they'd be used for or a link with the information I desire it would be greatly appreciated. I don't want to use other people's scripts as I'd rather be able to make them myself.
Also, bonus question. Does it matter what I put after " def "? I've seen people either use " initialize " or " main " and I don't know if that means anything or not. Thank you for reading!
(I have no programming experience, if that matters)