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

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

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -