ruby-mine

exploring the mine

Zen of Ruby

von murphy am 12.04.2006 (02 Uhr)

module Kernel
  alias old_require require
  def require *args, &blk
    if args.first == eval('self', TOPLEVEL_BINDING)
      puts "Have fun, and don't use eval!"
    else
      old_require *args, &blk
    end
  end
end

require self


Kommentar schreiben

Name (notwendig)

Mail (wird nicht veröffentlicht)

Webseite