From: Vladimir Fekete Date: 2008-11-15T19:56:19+09:00 Subject: how to call operator as function Hi *, could you help me please ? I'm trying to write a code where I could have operators' functions as values of hash and executing them in way like this (formal code): #============================= operators = { "+" => Fixnum.+, "-" => Fixnum.-, "++" => Myclass.++} op = "+" result = operators[op](left,right) if left.class==Fixnum and right.class==Fixnum #============================ is it possible ? Thanks, Cheers, V.