Review of Metaprogramming Ruby 2

Review of Metaprogramming Ruby 2

Review of Metaprogramming Ruby 2 written by Paolo Perrotta https://pragprog.com/book/ppmetr2/metaprogramming-ruby-2

6bf91645fc931c4c7f3d5549c4b7e59e?s=128

Derrick Parkhurst

November 21, 2014
Tweet

Transcript

  1. None
  2. Magical Grimoire

  3. Spells • Around Alias • Blank Slate • Class Extension

    • Class Instance Variable • Class Macro • Clean Room • Code Processor • Context Probe • Deferred Evaluation • Dynamic Dispatch • Dynamic Method • Dynamic Proxy • Flat Scope • Ghost Method • Hook Method • Kernel Method • Lazy Instance Variable • Mimic Method • Monkeypatch • Namespace • Nil Guard • Object Extension • Open Class • Prepended Wrapper • Refinement • Refinement Wrapper • Sandbox • Scope Gate • Self Yield • Shared Scope • Singleton Method • String of Code • Symbol To Proc
  4. The Ruby Object Model

  5. Methods and Ghost Methods

  6. Blocks, Procs, and Lambdas

  7. Classes and Modules

  8. Code the writes code

  9. The Epic Story of Rails and the Metaprogramming cthulhu

  10. Go Forth into Battle with Metaprogramming Magic