Ruby Basics - Videos on Methods & Conditions
Two beginner-level videos covering basic syntax of Methods (5:50) and Conditions (6:40). The Methods video covers basic syntax rules of methods in Ruby including using ‘def’ and ‘end’; the optional ‘return’ keyword; naming conventions for boolean methods (?), destructive methods (!) and setters (=); using default arguments and a variable number of arguments; and, the alias keyword. The Conditions video discusses syntax rules for: if, elsif, else, unless, the ternary operator and case statements.
Comments
The methods video does not play. It complains that it is “private.”
Fixed. Thanks for letting me know.
Post a comment