##Getting started
- Fork this gist
- Clone your forked copy onto your local machine
- Open the files in your text editor
$ ruby tests.rb
##Procedure
- Read the error message
| <!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> |
| class Vehicle | |
| attr_reader :color | |
| def initialize(args) | |
| @color = args[:color] | |
| end | |
| def brake | |
| @status = :stopped | |
| end | |
| def drive | |
| @status = :driving |
##Getting started
$ ruby tests.rb##Procedure
| puts 'Hello there, and what\'s your first name?' | |
| first_name = gets.chomp | |
| puts 'What about your middle name?' | |
| middle_name = gets.chomp | |
| puts 'And your last name?' | |
| last_name = gets.chomp | |
| full_name = first_name+' '+middle_name+' '+last_name | |
| puts 'Your name is ' + full_name+'? What a lovely name!' | |
| puts 'Pleased to meet you, ' + full_name + '. :)' | |
| puts "Did you know there are #{first_name.length + middle_name.length + last_name.length} letters in your name?" |