IronRuby.Builtins.ModuleOps.DefineMethod C# (CSharp) Method

DefineMethod() private method

private DefineMethod ( RubyScope scope, RubyModule self, [ methodName, [ block ) : Proc
scope RubyScope
self RubyModule
methodName [
block [
return Proc
        public static Proc/*!*/ DefineMethod(RubyScope/*!*/ scope, RubyModule/*!*/ self, 
            [DefaultProtocol, NotNull]string/*!*/ methodName, [NotNull]Proc/*!*/ block) {

            var visibility = GetDefinedMethodVisibility(scope, self, methodName);
            var info = Proc.ToLambdaMethodInfo(block, methodName, visibility, self);
            self.AddMethod(scope.RubyContext, methodName, info);
            return info.Lambda;
        }

Same methods

ModuleOps::DefineMethod ( RubyScope scope, [ block, RubyModule self, [ methodName ) : Proc
ModuleOps::DefineMethod ( RubyScope scope, RubyModule self, [ methodName, [ method ) : RubyMethod
ModuleOps::DefineMethod ( RubyScope scope, RubyModule self, [ methodName, [ method ) : UnboundMethod
ModuleOps::DefineMethod ( RubyScope scope, RubyModule self, string methodName, RubyMemberInfo info, RubyModule targetConstraint ) : void