Skip to content

Conversation

@noahpatterson
Copy link

A few notes/questions:

  • need help simplifying the specs with class variables
  • noticed another student used self in the initialize, that would have simplified things
  • added functionality to also update the class variable on each update
  • added functionality to allow filter by any combination of attributes

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the same as

def self.num_wheels
  2
end

@noahpatterson
Copy link
Author

Thanks for the feedback. I might try to work on a v2 of this at a later date to see I can grasp how to save the objects to @@all_vehicles.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants