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)
You could simplify this to:
And now it's a single file.