Categories

There are currently no items in your shopping cart.

User Panel

Forgot your password?.

Learn to Code with Ruby

Video Introducing this tutorial

Introduction and Installation :
Introduction to Ruby
Install Ruby 2.3.3
Mac OS - Access and Work with the Terminal
Mac OS - Install RVM and Install Ruby
Mac OS - Install Atom Text Editor and Atom Runner and Custom Theme
Mac OS - Write First Ruby File and Run with Atom Runner
Mac OS - Run Ruby File from Terminal
Windows - Download and Install Ruby
Windows - Install Atom Text Editor and Atom Runner and Custom Theme
Windows - Write First Ruby File and Run with Atom Runner
Windows - Run Ruby File from Command Prompt
Interactive Ruby (IRB)


Getting Started :
The puts Method
The print Method
The p Method
Basic Arithmetic in Ruby
Output and Arithmetic
10 questions
Comments
Variables
Parallel Variable Assignment and Swapping Variable Values
Constants
Intro to Object Methods
Return Values and the nil Object
String Interpolation
Intro to Numbers and the .class Method
The gets Method and the chomp Method
Variables, Constants, Object Methods, Return Values, String Interpolation
7 questions


Numbers and Booleans :
Convert Numbers to Strings and Vice Versa
Intro to Booleans
The .odd? and .even? Predicate Methods
Comparison with the Equality (==) Operator
Comparison with the Inequality (!=) Operator
Boolean Values, Predicate Methods, Equality and Inequality
5 questions
Less than and Greater than Operators
Arithmetic Methods and Basic Arguments
Intro to Object Methods with Parameters (The .between? Predicate Method)
Float Methods
Assignment Operators
Introduction to Blocks with the .times Method
The .upto and .downto Methods
BONUS - The .step Method
Object Methods, Parameters and Arguments, Float Methods, and Blocks
5 questions


Strings I :
Create a String
Multiline Strings
Escape Characters
Single Quotes vs Double Quotes
Equality and Inequality Operators with Strings
Concatenate Strings
The .length and .size Methods
Extract Single Characters from String with Bracket Syntax
Extract Multiple Characters from String with Bracket Syntax
Extract Multiple Characters with Range Objects
Overwrite Characters in String with Bracket Syntax
Case Methods
The .reverse Method on a String
Bang Methods on Strings
The .include? Method on a String
The .empty? and .nil? Methods on a String
Common String Methods
10 questions


Methods and Conditionals I :
Intro to Methods
Local Variables
Parameters and Arguments
Return Values I
Return Values II - Default Return Values and the Return of the puts Method
The if Statement
Truthiness and Falsiness
if elsif
The else Keyword
Multiple Conditions with && Operator
Multiple Conditions with || Operator
Truthiness and Falsiness
8 questions
Parentheses and Precedence
Nested if Statements
The .respond_to? Method
Ternary Operator
Default or Optional Parameters
Call A Method from Another Method or Interpolated String


Methods and Conditionals II :
The case Statement
Negation with !
The unless Keyword
The while Keyword
The until Keyword
CHALLENGE: FizzBuzz
Statement Modifiers / Inline Modifiers
Conditional Assignment
The case statement, Negation, the unless, while, and until Keywords, and More!
5 questions


Ranges :
Intro to Ranges
Alphabetical Ranges
The .size Method on a Range
Check if Value Exists in a Range with .includes? Method or ===
Generate A Random Number with the rand Method
Range Objects
3 questions


Arrays I - Creation, Addition, and Modification :
Introduction to Arrays
Create An Array with Bracket Syntax
Shorthand %w Syntax to Create an Array of Strings
Create an Array with Array.new Method
Access Single Array Element by Index Position
Access Single Array Element with .fetch Method
Extract Sequential Array Elements with Bracket Syntax
Access Sequential Array Elements with a Range Object
Access Multiple Array Elements with the .values_at Method
The .slice Method
Overwrite One or More Array Elements
The .length, .size and .count Methods on an Array
The .empty? and .nil? Methods on an Array
The .first and .last Methods
The .push Method, the Shovel Operator, and the .insert Method
The .pop Method
The .shift and .unshift Methods
Equality and Inequality Operators with Arrays
The Spaceship Operator
Convert Ranges to Arrays with the .to_a Method
The .is_a? Predicate Method
Arrays I - Creation, Addition, and Modification
10 questions


Arrays II - Iteration and Various Methods :
The ri Program
Review of Blocks
The .each Method on an Array
More Practice with the .each Method
each within each
The For Loop
The .each_with_index Method
CHALLENGE: The .each_with_index Method
The .map and .collect Methods on an Array
Iteration over Array with while or until Loops
The break Keyword
The next Keyword
The .reverse Method on an Array
The .sort Method on an Array
The .concat Method on an Array
The .max and .min Methods on an Array
The .include? Predicate Method on an Array
The .index and .find_index Methods on an Array
The .select Method on an Array
The .reject Method on an Array
Unpack a Multidimensional Array
The .partition Method on an Array
Arrays II - Iteration and Various Methods
9 questions


Strings II :
The .split Method on a String
Iterate over String Characters
The .join Method on an Array
The .count Method on a String
The .index and .rindex Methods on a String
The .insert Method on a String
The .squeeze Method
The .clear Method on a String
The .delete Method on a String
Strings II
5 questions


Arrays III - Bonus Methods :
Object Pointers and Object Copies
Splat Arguments
The .any? and .all? Methods on an Array
The .find and .detect Methods on an Array
The .uniq Method on an Array
The .compact Method on an Array
The .inject and .reduce Methods on an Array
The .flatten Method on an Array
The .zip Method on an Array
The .sample Method on an Array
Multiply an Array with Asterisk Symbol
Union - Combine Arrays and Exclude Duplicates
Remove Array Items that Exist in Another Array
Array Intersection with the Ampersand Symbol
Arrays III - Bonus Methods
7 questions


Hashes I :
Intro to Hashes
Create Hash and Extract Values from Hashes by their Keys
Intro to Symbols and Symbols as Hash Keys
Convert Symbols to Strings and Vice Versa
The .fetch Method on a Hash
Add a Key Value Pair to a Hash with Bracket Syntax or the .store Method
The .length and .empty? Methods on a Hash
The .each Method on a Hash
The .each_key and .each_value Methods
Retrieve Keys or Values from Hash as an Array
Hashes I
5 questions


Hashes II :
Create Hash with Default Value
Convert Hash to Array and Vice Versa
The .sort and .sort_by Methods on a Hash
The .key? and .value? Methods on a Hash
Hashes as Method Arguments
The .delete Method on a Hash
The .select and .reject Methods on a Hash
The .merge Method to Combine Hashes
CHALLENGE: Word Frequency in a Sentence String
Hashes II
4 questions


Blocks, Procs, and Lambdas :
Introduction to Blocks
The yield Keyword
Procs I
The .block_given? Method
Yielding with Arguments
A Custom .each Method
Procs II
Pass a Ruby Method as Proc
Methods with Proc Parameters
Intro to Lambdas
Lambda Efficiency Example


The Time Object :
Intro to the Time Object
Instance Methods on a Time Object
Predicate Methods on Time Objects
Add or Subtract Time by Seconds
The Comparable Methods on a Time Object
Convert Time Object to Other Objects
Convert Time Object to Formatted String
The .parse and .strptime Methods


File Input and Output :
Read from a Text File with Ruby
Write to a Text File with Ruby
Rename and Delete a File with Ruby
Command Line Arguments (ARGV)
The load Method
The require and require_relative Methods


Regular Expressions :
The .start_with? and .end_with? Methods
The .include? Method
Intro to Regular Expressions
The .scan Method I
The .scan Method II
The Wildcard Symbol
The Backslash
RegEx Anchors
Exclude Characters
The .sub and .gsub Methods with Regular Expressions
Rubular.com


Classes I :
Intro to Classes
Review of the .class Method on Ruby Objects
The .superclass and .ancestors Methods on a Class
The .methods Method
Create A Class
Object Aliases
Instance Variables and the .initialize Method
Instance Methods
Override the .to_s Method
The self Keyword in an Instance Method
Getter Methods
Setter Methods
Shortcut Accessor Methods
Add Parameters to initialize Method
Classes I
4 questions


Modules and Mixins :
Intro to Modules
Modules with Identical Methods
Import Modules into the Current File
The Math Module
Mixins I - The Comparable Module
Mixins II - Custom Mixins
The .ancestors Method in Depth
The prepend Keyword
The extend Keyword
Mixins III - The Enumerable Module
Modules and Mixins
4 questions


Classes II :
Private Methods
Protected Methods
Add Validation to Setter Methods
Prefer Instance Methods to Instance Variables
Calling Multiple Setter Methods within one Method
Structs
Monkey Patching I
Monkey Patching II
Monkey Patching III
Class Variables and Class Methods
Classes II
5 questions


Classes III :
Review of Inheritance
Create Subclasses
Check Inheritance Hierarchy
The .is_a? and .instance_of? Predicate Methods
Exclusive Instance Methods in Subclasses
Override Methods in a Subclass
The super Keyword I
The super Keyword II
Class Variables across Subclasses
Singleton Classes and Singleton Methods
Hash as initialize Argument I
Hash as initialize Argument II
Classes III
6 questions


Reading and Writing Documentation :
Intro to Rubydoc Documentation
Class Method Documentation on RubyDocs
Install rdoc
Use rdoc to Generate Your Own Documentation I
Use rdoc to Generate Your Own Documentation II


Conclusion :
Conclusion