I'm having trouble using the require in Ruby when I try to call the animal object.
#Classe Animal in file call animal.rb class Animal def pular puts 'Toing! tóim! bóim! póim!' end def dormir puts 'ZzZzZ!' end end
# Require rying to call the class Animal with arquivo app.rb require './animal.rb' animal = Animal.new animal.pular
Traceback (most recent call last): app.rb:3:in '': uninitialized constant Animal (NameError)