Examveda

In Ruby, which keyword is used to define a class method?

A. def self.method_name

B. method method_name

C. class method_name

D. def class.method_name

Answer: Option A


This Question Belongs to Ruby Programming >> Methods In Ruby

Join The Discussion

Related Questions on Methods in Ruby