Exemplo n.º 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"))));
 }
Exemplo n.º 2
0
 public override Value Execute(Args args, Environment environment, SourcePos pos)
 {
     return(args.GetAsPattern("obj"));
 }