File indexing completed on 2024-05-19 04:38:18
0001 module A a = 0 0002 end 0003 0004 module B 0005 a = 1 0006 b = 0 0007 end 0008 0009 module C 0010 def foo 0011 a = 0 0012 end 0013 end 0014 0015 module Foo 0016 module A 0017 def b 0018 2 0019 end 0020 module_function :b 0021 end 0022 def a 0023 A::b 0024 end 0025 0026 module_function :a 0027 end 0028 0029 a = Foo::a 0030 puts a 0031 0032 module Mod1 0033 module Mod2 0034 class A 0035 def to_s 0036 "Aigua clara de l'Anoia!" 0037 end 0038 end 0039 end 0040 end 0041 0042 class B < Mod1::Mod2::A 0043 end 0044 0045 puts B.new