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

RegexCondition1() public method

public RegexCondition1 ( ) : void
return void
        public void RegexCondition1() {
            AssertOutput(delegate() {
                CompilerTest(@"
$_ = 'foo'.taint
if /(foo)/ then
  puts $1
  puts $1.tainted?
end
");
            }, @"
foo
true
");
        }
Tests