Archive of posts in Feb, 2020
It is Feb 29 today!
It is Feb 29 today. The date appears once for as long as 4 years!
- Categories: update
- Tags: fooling around
Monkey-patching graciously
Monkey-patching is a powerful tool in programming. In this article, I used techniques of Ruby metaprogramming to define a series of methods
def_after
,def_before
, etc. to help monkey-patching. They look graciously in that we can use it to shorten the codes for monkey-patching (avoiding aliasing and repeating codes).- Categories: programming
- Tags: ruby, meta programming, long paper