Ruby Module Declaration -


is there difference between doing

class bus::driver end 

and

module bus   class driver   end end 

if not, syntax preferred?

is there difference between doing [...]?

the difference in class bus::driver bus module must defined, while same not stand second.

which syntax preferred?

this not constructive question prefer second because states explicitly bus module, while first cannot see @ first glance if bus module or class.


Comments

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -