2
Back and forth I see things like:
class Teste
class Foo
end
class Bar
end
end
Using classes within classes... Can anyone tell me what this is for? It’s not better and more correct to use modules?
module Teste
class Foo
end
class Bar
end
end
is very common in dynamic languages, in python also happens a lot.
– Anderson Danilo
Nested classes are great for refactoring complex classes.
– Peoplee