IronRuby.Tests.Tests.ProcNew4 C# (CSharp) Method

ProcNew4() public method

public ProcNew4 ( ) : void
return void
        public void ProcNew4() {
            TestOutput(@"
class P < Proc
  def initialize *args, &b
    p args, b.class, self.class, block_given?
    123
  end
end

def arg
  puts 'arg'
  []
end

def foo
  P.new(*arg)
end

foo { puts 1 }
", @"
arg
[]
NilClass
P
false
");
        }
        
Tests