Hijacking Ruby Syntax in Ruby
Tomohiro Hashidate and Satoshi "moris" Tagomori • May 31, 2018 • Sendai, Miyagi, Japan
This talk shows how to introduce new syntax-ish stuffs using meta programming techniques and some more Ruby features not known well by many Rubyists. Have fun with magical code!
- Show Ruby features to hack Ruby syntax (including Binding, TracePoint, Refinements, etc)
- Describe stuffs introduced by these techniques
- method modifiers (final, abstract, override)
- Table-like syntax for testing DSL
- Safe resource allocation/collection (with, defer)
- Propose new traceable events, hooks, etc
RubyKaigi 2018 https://rubykaigi.org/2018/presentations/joker1007
RubyKaigi 2018