ga-wdi-boston / ruby-object-class-methods

Other
0 stars 130 forks source link

Don't use class instance variable example. Use a factory methods example. #19

Closed gaand closed 7 years ago

gaand commented 7 years ago

This could be Album#search or some such that returns an array of Album instances which match a title for artist search.

jrhorn424 commented 7 years ago

@gaand By this, did you mean not to every use class instance variables, or to only use them for factory methods?

jrhorn424 commented 7 years ago

I ask because #20 brings it up, and the linter (and the community) prefer class instance variables to class variables.