0 votes
in Ruby by
How to create Ruby object?

1 Answer

0 votes
by
Objects in Ruby are created by calling new method of the class. It is a unique type of method and predefined in Ruby library.

Syntax:

objectName=className.new
...