# Collection of code snippets by Arne Vajhøj 
# (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
class C
  def m(s)
    puts s
  end
end
   
o=C.new
mp=o.method(:m)
mp.call("hej 1")

def f(s)
  puts s
end
   
fp=Proc.new{|s|f(s)}
fp.call("hej 2")
