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

EvalReturn1() public method

public EvalReturn1 ( ) : void
return void
        public void EvalReturn1() {
            TestOutputWithEval(@"
def y
  yield
end

def foo
  $b = Proc.new {  
    eval('return 123')
  }
  goo
end

def goo
  y(&$b)
end

p foo
", @"
123
"
            );
        }
Tests