I am new to Ruby and am confused by the :: operator. Why does the following code output 2, 3, 4, 5, 1 and not just output 1? Thanks!
class C a = 5 module M a = 4 module N a = 3 class D a = 2 def show_a a = 1 puts a end puts a end puts a end puts a end puts a end d = C::M::N::D.new d.show_a
puts5 times?