Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the power of Ruby's metaprogramming in this 29-minute conference talk from RubyConf 2021. Dive into the concept of methods as objects in Ruby, learning how to manipulate them like any other object. Discover techniques for storing methods in variables, extracting information from them, and wrapping them in Proc objects. Follow along with real-world examples demonstrating method manipulation, from basic concepts like listing available methods and obtaining method objects to more advanced topics such as understanding the differences between Method and UnboundMethod. Learn how to redefine methods using original method objects, gaining valuable insights into Ruby's flexibility and power. Enhance your Ruby programming skills and unlock new possibilities for writing more efficient and dynamic code.
Syllabus
Introduction
Methods in Ruby
Part 1 No
Part 2 Methods
Part 3 Methods
Part 2 Definition
Conclusion
Taught by
Ruby Central