Ruby - Class Methods and Variables
What will be the output of this Ruby code?
class Animal
LEGS = 4
def legs
LEGS
end
end
puts Animal::LEGS
puts Animal.new.legs