Ruby - Metaprogramming Fundamentals
Which of the following is a valid way to create a new class named
Animal using Class.new?Animal using Class.new?Class.new assigned to a constant to name the class.Animal = Class.new is valid Ruby syntax; others are invalid method calls or syntax.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions