Ruby (Part 5 of 6): Procs and Metaprogramming
Interactive

Ruby (Part 5 of 6): Procs and Metaprogramming

Biz Library
Updated Feb 04, 2020

Join Ruby expert Jordan Hudgens as he takes a look at two advanced topics in Ruby development: Procs and Metaprogramming. In addition to building your own procs and lambdas, the sister class of procs, Hudgens will also review a production Ruby on Rails application using lambdas to create custom database query scopes. Hudgens will walk through a practical understanding of metaprogramming and building out a full Ruby program, as well as cover the define_method process which allows classes to be written more efficiently.


Lesson 1:

  • Procs
  • Demo: Proc
  • Demo: Complex Proc.

Lesson 2:

  • Lambdas
  • Demo: Lambda.

Lesson 3:

  • Proc vs. Lambda
  • Demo: Proc vs. Lambda.

Lesson 4:

  • Lambdas in Rails
  • Demo: Lambdas in Rails.

Lesson 5:

  • What Is Metaprogramming?
  • Metaprogramming vs. AI.

Lesson 6:

  • Opening Classes
  • Demo: Opening Classes.

Lesson 7:

  • Method Missing
  • Demo: Method Missing
  • Demo: Using Method Missing.

Lesson 8:

  • Define Method
  • Demo: Define Method.

Lesson 9:

  • Usage in Rails
  • Demo: Metaprogramming in Rails.