Beispiel #1
0
        public static RubyArray /*!*/ Sort(RubyContext /*!*/ context, BlockParam block, RubyArray /*!*/ self)
        {
            RubyArray result = self.CreateInstance();

            IListOps.Replace(context, result, self);
            return(SortInPlace(context, block, result));
        }
Beispiel #2
0
        public static object Sort(ComparisonStorage /*!*/ comparisonStorage, BlockParam block, RubyArray /*!*/ self)
        {
            RubyArray result = self.CreateInstance();

            IListOps.Replace(result, self);
            return(SortInPlace(comparisonStorage, block, result));
        }