
Bootstraps you into Ruby literacy by exploring basic syntax and program execution. Learn to run Ruby, manage multi-file projects, and use core concepts, operators, and conditional statements.
Explore Ruby basics: local, instance, class, and global variables, constants, keywords, and object methods. Create a Celsius to Fahrenheit converter and save and run .rb programs from the command prompt.
Explore how Ruby loads external files and extensions using require, load, and require_relative, compare when files are loaded multiple times, and manage load paths.
Explore using dash r to require files at startup, plus verbose, version, and help options; practice with ERB and IRB interactive sessions and gem installation basics.
Master Ruby setter methods and the price equal syntax to modify attributes like ticket price, using set_price and price_equal, with syntactic sugar and data validation insights.
Master class methods on the class object with a temperature converter implementing c2f and f2c, and define and access constants for a ticket venues list.
Explore mixing in modules with the same method name using include and prepend, observe method lookup order, and learn how super enables jumping to the next definition in Ruby 2.0.
Define a person class that tracks name, friends, and hobbies, enables queries like all_with_friends and all_with_hobbies, and uses method_missing to route dynamic searches.
Explore nesting of classes and modules in Ruby, compare mixins and inheritance, and examine method lookup, dynamic method handling, and design decisions for flexible architectures.
Explore how Ruby global scope and local scope shape visibility of global, local, and class variables, plus how self and constants relate across methods and classes.
Explore class variable syntax in Ruby and how class variables share state between a class and its instances, plus constant lookup and scope rules.
Explore the Ruby class hierarchy through a baking scenario, defining cake, batter, flour, and egg, and enforce private methods in Baker to control explicit receivers and self calls.
Explore Ruby's case statements, using triple equal comparisons and when clauses to match tickets by venue, and understand the return value and nil outcomes.
Explore Ruby times and my_times, showing how a method yields to a block while returning once, and how each and map drive array iteration with blocks.
Explore creating custom iterators in Ruby by reimplementing map with each, and master block parameters, variable scope, and block local parameters to write robust, scoped code.
Explore boolean states in Ruby, examining true, false, and nil as objects and truth values. See how expressions evaluate for conditionals like if.
Learn how Ruby here documents create multi-line strings with customizable delimiters, interpolation, and escaping rules, including flush-left and hyphen variants, with practical examples.
Explore Ruby's array constructors by using array.new, the literal square-bracket form, the array method, and percent notation. Learn how to specify size, initialize elements, and nest arrays.
Master array manipulation in ruby by learning shift and pop, including element removal and return values. Explore combining arrays with concat, plus, and replace, and distinguish replace from reassignment.
Mastering Ruby hashes: store key-value pairs, perform quick lookups, and create hashes using literal, hash.new, hash[], and the top-level hash method, with practical examples.
Demonstrates default hash values and non-existent keys, using Hash.new with a block to auto-create keys, and contrasts destructive update with non-destructive merge for combining hashes.
Explore how ranges define start and end points, distinguish inclusive and exclusive syntax, and use creation and inclusion tests such as begin, end, or include and cover.
Discover how enumerator semantics hook the each method to a target object's methods, yielding map, select, or inject results while preserving the original collection.
Discover Ruby regex techniques through match data, including pre_match, post_match, and begin/end, and master quantifiers, anchors, and modifiers with examples like phone number matching and mr or mrs.
Explore zero-width lookahead and lookbehind assertions to match patterns without consuming characters, and learn conditional matches in Ruby regex. Master modifiers i, m, and x to control case, multi-line behavior.
Explore file enumerability in Ruby by using File.open with blocks, iterating with each, and leveraging inject to compute averages without loading entire files.
Examine pass-through overrides in Ruby, where a new method calls the original and adds behavior. Use extend for object or class-level augmentation, while considering collision risks and Active Support examples.
Explore Open3 in Ruby to communicate with external programs via two-way pipes, using standard input, output, and error, with threads coordinating a cat process.
Identify ruby keywords and reserved words, show compile-time errors when used as variables, and explore basic data types like numbers, booleans, strings, hashes, arrays, and symbols.
Explore Ruby fundamentals through hands-on examples with puts, arrays, hashes, indexing, loops, regular expressions, and arithmetic operators including addition, subtraction, division, and exponent.
Explore operator overloading in Ruby by building a class with attr_accessor, initialize, and custom operators, plus using predefined variables and constants like Ruby version and platform to inspect runtime details.
Explore Ruby methods with variable arguments using asterisk and hash, print parameters, and return sums. Create Range objects with range dot new, test membership, and use case statements.
Define and use class variables and initialize methods in Ruby, create objects, and demonstrate inheritance with Vehicle, Car, and Bus classes.
Demonstrates Ruby array manipulation: rotate left a 3-element array, reverse it, replace others with the max of first and last, and sum the first two elements with edge-case handling.
Develop ruby programs that check arrays for two sixes adjacent or with one element between, tasks like converting to an index hash, finding most occurred item, and testing identical items.
Explore Ruby programming by building programs that convert Fahrenheit to Celsius, compute averages with arrays and while loops, map alphabet positions to letters, and calculate a meaning of life percentage.
Master Ruby programming by building a program that creates personalized invitations from a guest list, saves each as a lowercase text file, and demonstrates a simple LCM calculation.
Count words and lines in a given file via command line arguments. Rename chapter files and compute an average from score.txt, using reading, summing, and rounding.
Explore Ruby programming fundamentals by creating objects and classes, calculating averages with collect and inject, and reading and processing files to generate range-based summaries.
Introduction
Ruby is a dynamic, open-source programming language that emphasizes simplicity and productivity. This comprehensive course takes you on a journey through the fundamentals of Ruby programming to advanced topics, including hands-on projects to reinforce your understanding. Whether you’re a beginner exploring programming or a developer seeking to expand your skill set, this course will equip you with the tools to excel in Ruby programming.
Section-Wise Writeup
Section 1: Ruby Programming Essentials
This section lays the foundation for understanding Ruby. Starting with the language's syntax and core concepts, you will learn about variables, methods, classes, modules, and control structures. The lectures also cover essential topics such as error handling, string manipulation, and file I/O operations. By the end of this section, you’ll have a solid grasp of Ruby’s capabilities and be ready to write functional programs.
Section 2: Ruby Basic Project
Dive into practical application with a hands-on project designed to consolidate your foundational knowledge. This section guides you step-by-step in building a basic Ruby project. Each lecture introduces new features and techniques, allowing you to see how Ruby concepts come together in a real-world scenario.
Section 3: Ruby Advanced Project
Take your skills to the next level with advanced Ruby projects that tackle complex programming challenges. This section explores advanced Ruby concepts, including multithreading, metaprogramming, and dynamic method creation. By completing these projects, you will master Ruby's flexibility and power, preparing you for professional development roles or personal endeavors.
Conclusion
By the end of this course, you will have mastered Ruby programming from its basics to advanced applications. You will have built multiple projects, gained practical experience, and developed problem-solving skills that will help you in various real-world scenarios. Whether you're pursuing software development, data processing, or scripting, this course will make you confident in using Ruby effectively.