Skip to content

Instantly share code, notes, and snippets.

View aloewright's full-sized avatar
:electron:
React, Framer, AI, ask!

aloe wright aloewright

:electron:
React, Framer, AI, ask!
View GitHub Profile
@aloewright
aloewright / index.html
Last active December 22, 2015 10:19 — forked from dbc-challenges/index.html
DBC Phase 2 Practice Assessment Part 3
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="http://cdn.jsdelivr.net/normalize/2.1.0/normalize.css">
<link rel="stylesheet" href="main.css">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Lato:100,900">
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.0.2/css/font-awesome.min.css">
</head>
=begin
Enacting Enumerables; Method: Zip
Zip merges the elements by index from the passed arguments.
If the size of the two arrays is unequal, nil is returned.
=end
a = ['sam', 'alex', 'nick']
=begin
I made three classes (types) of vehicles that inherit the behavior of one super class
called Vehicle. I arranged it following OO Design, using single responsibility methods.
=end
class Vehicle
attr_reader :passengers, :wheels, :num_seats, :fare, :color