conventions for private/public/protected #7

Open
riffraff opened this Issue Sep 13, 2011 · 0 comments

Comments

Projects
None yet
1 participant

I realized these are missing, both as editor conventions (e.g., if base indent is 2, indent "private" keyword by 1 is what I use) and coding style. Off the top of my head

  • should we use _foo for private methods ? I always thought it makes sense (way more then private does in ruby), but I seldom see it used

  • should we use private/protected methods at all?

  • when should we use private with or without arguments?

    private
    def foo()... end;

    def foo.... end
    private :foo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment