class A
def initialize
@x = "xxx"
end
class B
def initialize
p @x
end
end
end

A::B.new

class A の @x を class B のメソッドから参照するには、どうすれば