Ruby - Class Methods and Variables
What will be the output of the following Ruby code?
class Parent
@@value = 1
def self.value
@@value
end
def self.value=(v)
@@value = v
end
end
class Child < Parent
end
Parent.value = 5
puts Child.value