hide do
_ _ _
/\ /(_) __| | __| | ___ _ __
/ /_/ / |/ _` |/ _` |/ _ \ '_ \
/ __ /| | (_| | (_| | __/ | | |
\/ /_/ |_|\__,_|\__,_|\___|_| |_|
end
It provides a way to comment out code in Ruby
It adds a method to Kernel which might be considered bad practice.
It wants to considered for the award for smallest DSL ever (however, claiming to be a DSL might be pushing it!)
hide do
raise 'I do not want this to happen'
end
<% hide do %>
<p>Not working yet</p>
<% end %>
Its just a bit of fun and is a way for me to try out Mirco gems as suggested by Jeff Kreeftmeijer (http://jeffkreeftmeijer.com/2011/microgems-five-minute-rubygems)
Is there much advantage in a single file? As it is, I like the README, which helps to clarify what the gem does and does not do (and is easy to read on github). I'm truly asking here, as I was thinking of doing my own microgem.