public static MutableString GetCreateId(RubyScope scope) { return(RubyOps.GetInstanceVariable(scope, GetModule(scope, "JSON"), "@create_id") as MutableString); }
public static RubyArray /*!*/ Precision(BigDecimal /*!*/ self) { return(RubyOps.MakeArray2(self.Precision * BigDecimal.BASE_FIG, self.MaxPrecision * BigDecimal.BASE_FIG)); }
public static RubyArray /*!*/ Coerce(BigDecimal /*!*/ self, BigDecimal /*!*/ other) { return(RubyOps.MakeArray2(other, self)); }
private string GetDebuggerDisplayType() { return(RubyOps.GetDebuggerDisplayType(_immediateClass)); }
public object Call(Proc procArg, object arg1, object arg2, object arg3, object arg4) { var blockParam = RubyOps.CreateBfcForProcCall(this); return(RubyOps.MethodProcCall(blockParam, RubyOps.Yield4(arg1, arg2, arg3, arg4, procArg, _self, blockParam))); }
protected RubyObject(SerializationInfo /*!*/ info, StreamingContext context) { RubyOps.DeserializeObject(out _instanceData, out _immediateClass, info); }
public RubyInstanceData /*!*/ GetInstanceData() { return(RubyOps.GetInstanceData(ref _instanceData)); }
public static object NewAnonymousStruct(BlockParam block, RubyClass /*!*/ self, SymbolId className, [NotNull] params object[] /*!*/ attributeNames) { return(CreateAnonymousWithFirstAttribute(block, self, RubyOps.ConvertSymbolIdToSymbol(className), attributeNames)); }
public static RubyArray Coerce(BigInteger /*!*/ self, [NotNull] BigInteger /*!*/ other) { return(RubyOps.MakeArray2(other, self)); }
public static object ToSymbol(int self) { SymbolId result; return(RubyOps.TryConvertFixnumToSymbol(self, out result) ? (object)result : null); }
public static RubyArray /*!*/ Coerce(RubyContext /*!*/ context, BigDecimal /*!*/ self, BigInteger /*!*/ other) { return(RubyOps.MakeArray2(BigDecimal.Create(GetConfig(context), other.ToString(CultureInfo.InvariantCulture)), self)); }
public static RubyArray Coerce(RubyContext /*!*/ context, double self, object other) { return(RubyOps.MakeArray2(Protocols.ConvertToFloat(context, other), self)); }
public static bool IsComplexYaml(RubyContext /*!*/ context, MutableString /*!*/ self) { return(RubyOps.IsTrue(RubyRepresenter.ToYamlStyle(context, self)) || RubyRepresenter.ToYamlProperties(context, self).Count == 0 || AFTER_NEWLINE(self.ConvertToString())); }
public static object NewAnonymousStruct(BlockParam block, RubyClass /*!*/ self, [NotNull] RubySymbol /*!*/ firstAttibuteName, [DefaultProtocol, NotNullItems] params string /*!*/[] /*!*/ attributeNames) { return(CreateAnonymousWithFirstAttribute(block, self, RubyOps.ConvertSymbolToClrString(firstAttibuteName), attributeNames)); }
public static RubyArray /*!*/ Coerce(double self, [DefaultProtocol] double other) { return(RubyOps.MakeArray2(other, self)); }
public object Call(object arg1, object arg2, object arg3) { var blockParam = RubyOps.CreateBfcForProcCall(this); return(RubyOps.MethodProcCall(blockParam, RubyOps.Yield3(arg1, arg2, arg3, _self, blockParam))); }
string /*!*/ IRubyObject.BaseToString() { return(RubyOps.ObjectToString(this)); }
// R(4, *) public override object InvokeSplat(BlockParam /*!*/ param, object self, object arg1, object arg2, object arg3, object arg4, object splattee) { return(InvokeSplatInternal(param, self, RubyOps.MakeArray4(arg1, arg2, arg3, arg4), splattee)); }
public virtual void GetObjectData(SerializationInfo /*!*/ info, StreamingContext context) { RubyOps.SerializeObject(_instanceData, _immediateClass, info); }
// R(N, *) public override object InvokeSplat(BlockParam /*!*/ param, object self, object[] /*!*/ args, object splattee) { Debug.Assert(args.Length > MaxBlockArity); return(InvokeSplatInternal(param, self, RubyOps.MakeArrayN(args), splattee)); }
private string GetDebuggerDisplayValue() { return(RubyOps.GetDebuggerDisplayValue(_immediateClass, this)); }
public static RubyArray ToStrToInt(RubyModule /*!*/ self, [DefaultProtocol] Union <MutableString, int> value) { return(RubyOps.MakeArray2(value.First, value.Second)); }
// Call overloads don't check parameter count, this is done by Proc#call. public object Call(Proc procArg) { var blockParam = RubyOps.CreateBfcForProcCall(this); return(RubyOps.MethodProcCall(blockParam, RubyOps.Yield0(procArg, _self, blockParam))); }
public static bool Equal(RubyContext /*!*/ context, object lhs, object rhs) { return(RubyOps.IsTrue(EqualSharedSite.Target(EqualSharedSite, context, lhs, rhs))); }
public static RubyArray /*!*/ DivMod(int self, int other) { return(RubyOps.MakeArray2(Divide(self, other), Modulo(self, other))); }
public static bool RespondTo(RubyContext /*!*/ context, object obj, SymbolId name) { return(RubyOps.IsTrue(RespondToSharedSite.Target(RespondToSharedSite, context, obj, name))); }
public static RubyArray /*!*/ Split(BigDecimal /*!*/ self) { return(RubyOps.MakeArray4(self.Sign, MutableString.CreateAscii(self.GetFractionString()), 10, self.Exponent)); }
public static bool RespondTo(RubyContext /*!*/ context, object obj, string name) { return(RubyOps.IsTrue(RespondToSharedSite.Target(RespondToSharedSite, context, obj, SymbolTable.StringToId(name)))); }
public static RubyArray /*!*/ Coerce(RubyContext /*!*/ context, BigDecimal /*!*/ self, double other) { return(RubyOps.MakeArray2(other, ToFloat(context, self))); }
public static RubyArray /*!*/ Coerce(RubyContext /*!*/ context, BigDecimal /*!*/ self, int other) { return(RubyOps.MakeArray2(BigDecimal.Create(GetConfig(context), other.ToString()), self)); }