Question: language is in ruby? Create an instance of the following Person class, set its name attribute to any value you like, and use its instance

 language is in ruby? Create an instance of the following Person

language is in ruby?

Create an instance of the following Person class, set its name attribute to any value you like, and use its instance variable to complete the greeting method. 13 1, class Personi 2attr accessor :name 3def greeting 4 5 puts "hi, my name is #{name}" 6end 7end # @natee 9 some person person. new 10 some person name"MyName" 11 some person. p 12 13 14 Reset Name Error: undefined local variable or method person" for main:Object line 9: in main' 14. Using an array, double each of the following values and print each result values [1.1. 10 4.55, 30004, 0.2]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!