Keywords Present in Ruby Programming Language
Keywords in Ruby Programming Language
Keywords description
- __ENCODING__ The script encoding of the current file.
- __LINE__ The line number of this keyword in the current file.
- __FILE__ The path of the current file.
- BEGIN Runs before any other code in the current file.
- END Run after any other code in the current file.
- alias Creates as alias between two methods.
- and Short-circuit Boolean.
- begin Starts an exception handling block.
- break Leaves a block early.
- case Starts a case expression.
- class Creates or opens a class.
- def Defines a method.
- do Starts a block.
- for A loop that is similar to using the each method.
- if Used for if and modifier.
- next Skips the rest of the block.
- return Exist the method.
Comments