Documentation / @blazetrails/activesupport / rbEqual
Function: rbEqual()
rbEqual(
a,b):boolean
Defined in: packages/ruby-compat/dist/rb-equal.d.ts:17
Ruby's rb_equal (vendor/ruby/v3.3.11/object.c:147) — the C primitive behind every == send: identity first, then the receiver's own ==. Ported callers (Range#=='s endpoint comparison, Duration#=='s non-Duration arm) all need the same dispatch, and JS === only covers its first arm.
rb_str_equal (vendor/ruby/v3.3.11/string.c:3742) compares a UTF-8 String with a binary one, whose seat is a Uint8Array, only where rb_str_comparable (string.c:3671) allows it, which is when one of them is 7-bit, and then by their bytes.
Parameters
| Parameter | Type |
|---|---|
a | unknown |
b | unknown |
Returns
boolean
No Rails Equivalent
PERMANENT — rb_equal is a C primitive (vendor/ruby/v3.3.11/object.c:147), not a Ruby method, so it has no counterpart file; JS has no == send at all, so one copy serves every ported ==.