Dave Benjamin wrote:
erstand that everything lives inside an object, so there are no free
> functions, but there are certainly methods that behave like free functions;
> I can create one of those things using "def". What I can't seem to do is
> pass that method around and still call it without referencing the object
> it's attached to. Or can I?

Is this what you are looking for?

class X
   def x
     p "X"
   end
end

unbound = X.instance_method( :x )
x = X.new
bound = unbound.bind( x )
bound.call
# or
bound = x.method( :x )
bound.call

-- 
(\[ Kent Dahl ]/)_    _~_    _____[ http://www.pvv.org/~kentda/ ]_____/~
  ))\_student_/((  \__d L b__/ (pre-) Master of Science in Technology  )
( \__\_/__/ ) _)Industrial economics and technological management(
  \____/_\____/ (____engineering.discipline_=_Computer::Technology___)