6 ms·
I like the idea, but it's not exactly new (at least not in the Ruby community). The most known is probably Markaby, written by _why two years ago: http://redha
by judofyr 18y ago
I like the idea, but it's not exactly new (at least not in the Ruby community).
The most known is probably Markaby, written by _why two years ago: http://redhanded.hobix.com/inspect/markabyForRails.html http://redhanded.hobix.com/inspect/markabyForRails.html
Nokogiri also ships with a similar library, and Tagz is another one.
I've actually written such a library myself which uses ParseTree/RubyParser to parse the code and generates plain Ruby. Of course, nobody is ever going to use it, but it was a load of fun and it's super fast.