Skip to content

mojitocoder/ruby

This branch is 29 commits ahead of Beub/ruby:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Quynh Nguyen
Jun 14, 2017
9e47dd2 · Jun 14, 2017

History

40 Commits
Jun 5, 2017
Jun 10, 2017
Jun 14, 2017
Dec 29, 2013
Dec 29, 2013
Jun 6, 2017
Jun 6, 2017

Repository files navigation

ruby

Ruby-beginners challenges

This is a great way to progressively learn Ruby by solving small problems.

Notes

Important websites:

  1. init.rb is the main entry to the application
  2. \lib contains the code logic
    • Each module is in a separate folder using snake-case convention
    • Each class is in a .rb file
  3. To assemble code:
    • require absolute path
      • require "#{__dir__}/deep_space/spaceship"
    • require_relative 'deep_space/spaceship'
  4. Gems are available from - rubygems.org
  5. Basic terminal command:
    • gem list => list installed gems
    • gem search -r xxx => search for xxx gem remotely
    • gem install xx => install gem xxx
    • gem uninstall xx => uninstall
    • bundler is dependency management package, and is a gem itself
      • Once a Gemfile is available in a project, bundle install command will install all the required gems
  6. Testing

About

Ruby-beginners challenges

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%