hoodwink.d enhanced

Sun Jul 31

Using Rails helpers in irb with include_all_modules_from

$ irb -r rubygems -r action_controller
>> include_all_modules_from ActionView::Helpers
>> puts link_to('Google', 'http://google.com')
<a href="http://google.com">Google</a>

Include all modules contained within some nesting

module Kernel def include_all_modules_from(parent_module) parent_module.constants.each do |const| mod = parent_module.const_get(const) send(:include, mod) if mod.class == Module end end end
Balls

Bouncy Balls in SF

#rubyist.org

20:17 <@sam-> i wish there were syntax for rescue nil
20:17 <@sam-> like ^_^;;
20:18 <@sam-> IO.read('/etc/shadow') ^_^;;

#rubyist.org

19:48 <@killfile> jesus christ is alive and well
19:48 <@killfile> ... and working at papa johns
19:48 <@killfile> http://elitists.textdriven.com/christ.jpg

Kwalify


Validate your YAML documents.

#ruby-lang

12:08 * slyphon smashes noradio's driver side window and steals his fuzzy dice

#rubyonrails

00:53 < danp> project.ioni.st is too hardcore for me