Skip to content

@blazetrails/ruby-compat ​

Ruby core/stdlib primitives that trails calls but Rails does not define: a leaf package with no workspace dependencies

MeasureValue
Rails counterpartnone (TypeScript-only package)
API methods matched2% (10 of 434)
Rails tests matched—
Ruby files ported1
Ruby files unported10
Measured atfe89b44726

Gaps by file ​

Ported files with Rails methods or tests still missing, largest gap first.

Ruby fileTypeScript fileMethods missingTests matched
parser.rbparser.ts12—

Missing methods ​

The Rails methods parity:api finds no TypeScript counterpart for, by Ruby file.

parser.rb: 12 missing

_racc_do_parse_rb, _racc_yyparse_rb, racc_read_token, racc_shift, racc_reduce, racc_accept, racc_e_pop, racc_next_state, racc_print_stacks, racc_print_states, racc_token2str, racc_runtime_type

Unported Ruby files ​

Deviation receipts ​

JSDoc receipt tags in the package's source, by the receipt each carries.

TagPERMANENTCONVERGEABLEnone
@noRailsEquivalent302030
@missingRailsCall170
@missingRailsArgs010
@inventedArm1500
@perf2300
@internal21075

Permanently skipped tests ​

No section cited (18)
Method visibility is compile-time only (Module#private, basic_obj_respond_to's pub) (2)
Ruby Strings are JS string primitives (no mutable String carrier) (2)

Ratified deviations ​

Each rule below is ratified in the repository's CLAUDE.md files. The first paragraph is quoted; the link opens the full section at this build's commit.

Method visibility is compile-time only (Module#private, basic_obj_respond_to's pub) ​

Ruby's basic_obj_respond_to (vendor/ruby/v3.3.11/vm_method.c:2864-2879) takes a pub flag and hands it to method_boundp (:1788-1818), so respond_to?(:m) and respond_to?(:m, true) can answer differently for the same receiver, and Kernel#public_send (vm_eval.c:1350) raises NoMethodError "private method '…' called for …" where send dispatches. Visibility is a property of the method entry, readable at run time.

CLAUDE.md →

Ruby Strings are JS string primitives (no mutable String carrier) ​

A Ruby String is a mutable object with identity. str << "x" and str.replace("y") change the receiver in place, str.dup is a second object with the same content, and frozen? is a per-object fact. ActiveModel leans on all three:

CLAUDE.md →

Source ​

packages/ruby-compat on GitHub →