Keywords Present in Ruby Programming Language

 Keywords in Ruby Programming Language

      Keywords                                                                                     description

  1. __ENCODING__                                            The script encoding of the current file.
  2. __LINE__                                                        The line number of this keyword in the current  file.
  3. __FILE__                                                         The path of the current file.
  4. BEGIN                                                               Runs before any other code in the current file.
  5. END                                                                   Run after any other code in the current file.
  6. alias                                                                    Creates as alias between two methods.
  7. and                                                                      Short-circuit Boolean.
  8.  begin                                                                  Starts an exception handling block.
  9. break                                                                   Leaves a block early.
  10. case                                                                     Starts a case expression.
  11. class                                                                     Creates or opens a class.
  12. def                                                                       Defines a method.
  13. do                                                                        Starts a block.
  14. for                                                                        A loop that is similar to using the each method.
  15. if                                                                          Used for if and modifier.
  16. next                                                                      Skips the rest of the block.
  17. return                                                                      Exist the method.             

Comments

Popular posts from this blog

Python Program to Generate Password

How to become a Hacker ?