module M
class C
class D
module N
X = 1
end
end
end
end
puts M::C::D::N::X
module M
class C
X = 222
class D
module N
X = 1
end
end
end
end
puts M::C::D::N::X
puts M::C::X
it works correct
module M
class C
class D
module N
X = 1
end
end
puts D::N::X
end
end
this is wrong and doesn't work!
module M
class C
class D
module N
X = 1
end
end
end
end
puts D::N::X # it is wrong
Top comments (0)