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- 1Your first programRubyPrinting with puts and string interpolation8 min
- 2Numbers and stringsRubyDecimal division and string methods11 min
- 3ConditionalsRubyBranching with if and unless, and what counts as false12 min
- 4Arrays and their methodsRubyAdd, remove and sort12 min
- 5Blocks and iterationRubyThe map, select and reduce methods13 min
- 6Hashes and symbolsRubySymbols and default values13 min
- 7Defining methodsRubyKeyword arguments and methods ending in ? or !13 min
- 8Classes and objectsRubyThe initialize constructor, attr and to_s14 min
- 9Mixing modules into classesRubyMixing in Comparable with include and <=>13 min
- 10Reports with EnumerableRubyGroup, count and sort14 min