Wun Code
Ruby

Ruby Basics

Ruby was designed to make programming a joy, and it's the language Ruby on Rails is built on.

Start the trackFree, no sign-up needed

What you'll learn

  • Your first programPrinting with puts and string interpolation
  • Numbers and stringsDecimal division and string methods
  • ConditionalsBranching with if and unless, and what counts as false
  • Arrays and their methodsAdd, remove and sort
  • Blocks and iterationThe map, select and reduce methods
  • Hashes and symbolsSymbols and default values
  • Defining methodsKeyword arguments and methods ending in ? or !
  • Classes and objectsThe initialize constructor, attr and to_s
  • Mixing modules into classesMixing in Comparable with include and <=>
  • Reports with EnumerableGroup, count and sort

Track contents

10 lessons, 2 hours in total
  1. 1Your first programRubyPrinting with puts and string interpolation
  2. 2Numbers and stringsRubyDecimal division and string methods
  3. 3ConditionalsRubyBranching with if and unless, and what counts as false
  4. 4Arrays and their methodsRubyAdd, remove and sort
  5. 5Blocks and iterationRubyThe map, select and reduce methods
  6. 6Hashes and symbolsRubySymbols and default values
  7. 7Defining methodsRubyKeyword arguments and methods ending in ? or !
  8. 8Classes and objectsRubyThe initialize constructor, attr and to_s
  9. 9Mixing modules into classesRubyMixing in Comparable with include and <=>
  10. 10Reports with EnumerableRubyGroup, count and sort