示例#1
0
        public static MutableString /*!*/ Inspect(RubyContext /*!*/ context, BigDecimal /*!*/ self)
        {
            MutableString str = MutableString.CreateMutable();

            str.AppendFormat("#<{0}:", context.GetClassOf(self).Name);
            RubyUtils.AppendFormatHexObjectId(str, RubyUtils.GetObjectId(context, self));
            str.AppendFormat(",'{0}',", self.ToString(10));
            str.AppendFormat("{0}({1})>", self.PrecisionDigits.ToString(), self.MaxPrecisionDigits.ToString());
            return(str);
        }
示例#2
0
 public static MutableString /*!*/ AppendFormatHexObjectId(MutableString /*!*/ str, int objectId)
 {
     return(str.AppendFormat("0x{0:x7}", 2 * objectId));
 }
示例#3
0
 public static MutableString/*!*/ AppendFormatHexObjectId(MutableString/*!*/ str, int objectId) {
     return str.AppendFormat("0x{0:x7}", 2 * objectId);
 }