Ruby - Class Methods and Variables
What will be the output of the following Ruby code?
class Parent
@@value = 10
def self.value
@@value
end
end
class Child < Parent
@@value = 20
end
puts Parent.value
puts Child.value