public static int Delete(RubyClass /*!*/ self, [NotNull] params object[] /*!*/ paths) { foreach (MutableString path in Protocols.CastToStrings(self.Context, paths)) { Delete(self, path); } return(paths.Length); }
public static RubyArray /*!*/ ValuesAt(RubyContext /*!*/ context, object /*!*/ self, [NotNull] params object[] /*!*/ keys) { RubyArray result = new RubyArray(keys.Length); foreach (MutableString key in Protocols.CastToStrings(context, keys)) { result.Add(GetVariable(context, self, key)); } return(result); }
public static int UpdateTimes(RubyClass /*!*/ self, object accessTime, object modifiedTime, [NotNull] params object[] /*!*/ paths) { DateTime atime = MakeTime(self.Context, accessTime); DateTime mtime = MakeTime(self.Context, modifiedTime); foreach (MutableString path in Protocols.CastToStrings(self.Context, paths)) { UpdateTimes(self, atime, mtime, path); } return(paths.Length); }