🕷 zenspider.com

by ryan davis



sitemap
Looking for the Ruby Quickref?

ugh

Published 2011-10-20 @ 17:13

Tagged ruby

If you write code like this, you’re an asshole:

1
2
3
4
5
6
7
if not $extmk and File.exist?(($hdrdir = RbConfig::CONFIG["rubyhdrdir"]) + "/ruby/ruby.h")
  # ...
elsif File.exist?(($hdrdir = ($top_srcdir ||= topdir) + "/include") + "/ruby.h")
  # ...
else
  abort "mkmf.rb can't find header files for ruby at #{$hdrdir}/ruby.h"
end

No bones about it… There is no excuse for this mess.