Skip to content

Instantly share code, notes, and snippets.

View Uzmani's full-sized avatar

Usman Chaudhary Uzmani

  • San Francisco, CA
View GitHub Profile
/* Here is your chance to take over Socrates!
Spend 10 minutes on each of the following hacks to the socrates website.
Enter them in the console to make sure it works and then save
your results here.
Choose a new pair for each. Add your names to the section you complete.
*/
/* Here is your chance to take over Socrates!
Spend 10 minutes on each of the following hacks to the socrates website.
Enter them in the console to make sure it works and then save
your results here.
Choose a new pair for each. Add your names to the section you complete.
*/
git@github.com:Uzmani/ar-student-schema.git
https://github.com/Uzmani/ar-student-schema
class Vehicle
attr_reader :color, :wheels, :status, :passengers, :speeds
def initialize(args)
@color = args[:color]
@status = :stopped
@speed = :normal
end
def drive
@status = :driving