Author: admin
-
Disadvantages of Ruby Programming Language
Although Ruby has many advantages, there are also some disadvantages that you should be aware of. These include: 1. Speed Ruby is not the fastest language out there. This can be a problem if you are working on a project that requires high performance. However, there are ways to improve the speed of Ruby programs,…
-
Advantages of Ruby Programming Language
If you’re interested in learning Ruby, many resources are available to help you get started. Given that it’s in use for many technologies, this language has many advantages. Some of them are listed as follows: 1. Open source and community support One of the major advantages of Ruby on Rails is the community and support…
-
Keywords
In Ruby there are approximately 42 keywords which can’t be used for other purposes. They are called reserved words.
-
Statement delimiters
Multiple statements in a single line must contain semi colon in between but not at the end of a line.
-
Missing method
If a method is lost, Ruby calls the method_missing method with name of the lost method.
-
Singleton methods
Ruby singleton methods are per-object methods. They are only available on the object you defined it on.
-
Method names
Methods are allowed to end with question mark (?) or exclamation mark (!). By convention, methods that answer questions end with question mark and methods that indicates that method can change the state of the object end with exclamation mark.
-
Naming conventions
Ruby defines some naming conventions for its variable, method, constant and class.
-
Variable constants
In Ruby, constants are not really constant. If an already initialized constant will be modified in a script, it will simply trigger a warning but will not halt your program.