MCQs > IT & Programming > Ruby On Rails > Given the following code, where is the 'party!' method available? module PartyAnimal def self.party! puts 'Hard! Better! Faster! Stronger!' end end class Person include PartyAnimal end

Ruby On Rails MCQs

Given the following code, where is the "party!" method available?
module PartyAnimal
def self.party!
puts "Hard! Better! Faster! Stronger!"
end
end
class Person
include PartyAnimal
end

Answer

Correct Answer: PartyAnimal.party!

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Ruby On Rails Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Ruby On Rails Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it