From: Edward Chen Date: 2013-03-26T04:12:24+09:00 Subject: [ruby-core:53727] Public/Private --089e016813c2ace5f304d8c4830d Content-Type: text/plain; charset=ISO-8859-1 - #private - #private_class_method - #public - #public_class_method Would it be a good idea to compress these 4 methods to 2 methods? public - Can set both instance *and* class methods to public by passing them in as symbol private - Can set both instance *and* class methods to private by passing them in as symbol and enable them to be called at top of class? Is this a good idea? It would clean up Module# and encourage use of these two as methods rather than keywords --089e016813c2ace5f304d8c4830d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
  • <= a href=3D"http://www.ruby-doc.org/core-1.9.3/Module.html#method-i-private" = target=3D"_blank" style=3D"padding:0px;margin:0px;border-bottom-style:dotte= d;border-bottom-color:rgb(205,205,205);border-bottom-width:1px;color:rgb(51= ,51,51)!important;text-decoration:none!important">#private
  • #private_class_method
  • #public
  • #public_class_method
Would it be a good idea to co= mpress these 4 methods to 2 methods?

public - Can set b= oth instance *and* class methods to public by passing them in as symbol
private - Can set both instance *a= nd* class methods to private by passing them in as symbol

and enable th= em to be called at top of class? Is this a good idea? It would clean up Mod= ule# and encourage use of these two
as meth= ods rather than keywords


--089e016813c2ace5f304d8c4830d--