Skip to content

teknofire/ruby-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quick Ruby Tutorial with zombies included

Here is a quick set of ruby code to give an overview of ruby things

Things that should be covered as part of this

  1. Comments
  2. Strings
  3. Different types (", ', and symbols)
  4. Manipulating them
  5. Creating a class
  6. Naming
  7. Variable types (instance, class, constants)
  8. methods, special characters, params and default values
  9. returning values
  10. helper methods
  11. Including other code
  12. Errors

Resources

  1. http://apidock.com/ruby
  2. http://apidock.com/rails
  3. http://www.codeschool.com
  4. https://github.com/bbatsov/ruby-style-guide

What this tutorial expects

  1. All code written will be done in person.rb
  2. The class you create in the code will be called Person

Seeing available tasks

Run the following command to see the available tasks

$ rake -T
rake test          # Run tests
rake test_example  # Run test example code

Running the tests

Simply run the following command to test your code

rake

A successful run should output

Run options: 

# Running tests:

...............

Finished tests in 0.001549s, 9683.6669 tests/s, 12265.9781 assertions/s.

15 tests, 19 assertions, 0 failures, 0 errors, 0 skips

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages