ruby nested classes and modules
- by ash34
Hi,
I am familiar with the concept of nesting classes and modules within another module and grouping them in a namespace. What is the idea / purpose behind
Nesting classes within another class
class A
class B
def method_B
...
end
end
end
2.Nesting modules within another class
class A
module c
def method_c
...
end
end
end
thanks,
ash