Login
Remember
Register
Ask a Question
How to create Ruby object?
0
votes
asked
Nov 11, 2021
in
Ruby
by
SakshiSharma
How to create Ruby object?
ruby-object
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Nov 11, 2021
by
SakshiSharma
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
...