how does rails do this "find_by_?"

I'm wondering how do they create functions on the fly?

see:    Under the hood: ActiveRecord::Base.find     http://weblog.jamisbuck.org/2006/12/1/under-the-hood-activerecord-base-find-part-3

Alain