CreateMethodInvoker() public static method

Creates a proc that invokes a method of given name. Proc.new do |*args| raise ArgumentException if args.size == 0 obj.methodName(args.delete_at(0), args) end
public static CreateMethodInvoker ( IronRuby.Runtime.RubyScope scope, string methodName ) : Proc
scope IronRuby.Runtime.RubyScope
methodName string
return Proc
Example #1
0
 public static Proc /*!*/ ToProc(RubyScope /*!*/ scope, RubySymbol /*!*/ self)
 {
     return(Proc.CreateMethodInvoker(scope, self.ToString()));
 }