예제 #1
0
 public override Value Execute(Args args, Environment environment, SourcePos pos)
 {
     if (args.IsNull("str"))
     {
         return(ValueBoolean.FALSE);
     }
     return(ValueBoolean.From(args.GetString("str").Matches(args.GetAsPattern("pattern"))));
 }
예제 #2
0
 public override Value Execute(Args args, Environment environment, SourcePos pos)
 {
     return(args.GetAsPattern("obj"));
 }