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
Post a Comment