I’m doing this:
distanceFunc = lambda do |a,b|
Leven.wordLevenWithOps(a, b)
end
links = prims(phrases, &distanceFunc)
It works but I would like to something shorter like:
links = prims(phrases, &Leven.wordLevenWithOps)
What is the right syntax ?
you can get class method of any class as
and you can pass its reference
for your case(considering wordLevenWithOps as class method in Leven) following would work;
hope this help.