Ruby → TypeScript naming conventions
<!-- GENERATED FILE — do not edit by hand. Regenerate with pnpm parity:api:conventions. The source of truth is explainConventions() in scripts/parity/conventions.ts; CI runs tsx scripts/parity/conventions-doc.ts --check and fails if this file drifts from it. -->
These are the exact rules parity:api uses to match a Ruby method or file to its trails TypeScript counterpart. Follow them when porting Rails code so the comparison credits your implementation.
Method names
The Example column shows the TS symbol name(s) parity:api looks for (it matches the first candidate present in the target file), not a call expression.
| Ruby | TypeScript | Example |
|---|---|---|
predicate? (bare) | is* prefix, then camel | valid? → isValid or valid or _isValid or _valid |
key? / value? | is* / camel / the has* spelling of the has_*? Rails aliases it to | value? → isValue or value or hasValue or _isValue or _value or _hasValue |
active_connections? / active_workers? / any_changes? / attachments? / database_tasks? / default_scopes? / duplicates? / eligible_waiters? / grouped_choices? / many_workers? / nested_attributes? / prepared_statements? / record_timestamps? / resources? / routes? / saved_changes? / scope_attributes? / seeds? | is* / camel / has* (plural-noun subject) | active_connections? → isActiveConnections or activeConnections or hasActiveConnections or _isActiveConnections or _activeConnections or _hasActiveConnections |
is_*? | camel form (no doubled isIs*) | is_number? → isNumber or _isNumber |
has_*? / supports_*? / can_*? / should_*? / needs_*? / includes_*? / responds_*? / allows_*? / uses_*? | camel form + is* fallback | has_attribute? → hasAttribute or isHasAttribute or _hasAttribute or _isHasAttribute |
include? / member? / exclude? | is* / camel / native JS spelling | include? → isInclude or include or includes or _isInclude or _include or _includes |
name! (bang) | *Bang suffix | save! → saveBang or _saveBang |
name= (setter) | bare camel name, set* fallback | table_name= → tableName or setTableName or _tableName or _setTableName |
initialize / new | constructor | initialize → constructor |
to_s / to_str | toString | to_s → toString |
to_json | toJSON | to_json → toJSON |
to_sql | toSql | to_sql → toSql |
-@ (unary minus) | negate | -@ → negate |
| everything else | snake_case → camelCase | has_many → hasMany or _hasMany |
Constructor details: a class's own self.new is the constructor, as initialize is: Ruby's Klass.new and JS's new Klass are one operation (ActiveSupport::TimeZone.new, values/time_zone.rb:216, beside #initialize at :301). Where a class defines both, the call gates compare the constructor against new then initialize, with new's super spent on initialize. A ClassMethods#new in the class's own Ruby file pairs the same way. A module's initialize, or a ClassMethods#new, defined in another Ruby file is matched through the @inlinedFrom tag on the constructor it is inlined into (RFC 0188), and a module method whose body calls super through the tag on the includer's method of the same name (RFC 0197).
Any other new, an instance method or a module's own self.new, maps to constructor only when its Ruby file does NOT also define initialize. Beside initialize (ActionController::Renderer#new, renderer.rb:72, next to #initialize at :111) it WRAPS the constructor, so it is a second Ruby member, not a second spelling of the same one.
Predicate-form details: a predicate whose Ruby file ALSO defines the bare name (Logger#debug next to Logger#debug?) offers the QUOTED LITERAL spelling first — get "debug?" — because its camel candidate names the sibling, not the predicate. is_*? collapses to a single camel candidate so trails can't land the redundant doubled isIsNumber. Already-predicate prefixes keep the is* fallback because the disambiguating alias is sometimes needed when the bare name collides with a macro (e.g. isHasOne() alongside the Model.hasOne declaration). A Q suffix (activeConnectionsQ) is never a candidate: xQ is not a trails spelling of x?, so port a predicate whose bare camel name is taken as is* (or the quoted literal). A has* spelling is a candidate only for a bare predicate Rails itself aliases to a has_*? method (key? / value?); a blanket has* would collide with a sibling has_*?, as encrypted_attributes? does with has_encrypted_attributes?. A predicate whose subject is a plural noun also gets has* (active_connections? / active_workers? / any_changes? / attachments? / database_tasks? / default_scopes? / duplicates? / eligible_waiters? / grouped_choices? / many_workers? / nested_attributes? / prepared_statements? / record_timestamps? / resources? / routes? / saved_changes? / scope_attributes? / seeds?). Leading underscores and runs of underscores collapse like a single underscore (visit__regexp → visitRegexp), and underscore-before-capital collapses too (visit_Arel_Nodes_X → visitArelNodesX).
Private-helper details: every candidate above additionally offers its _-prefixed spelling as a LAST candidate (convert_value_to_parameters → _convertValueToParameters). trails prefixes a private helper with _ to keep it off the public surface — the convention eslint/rails-private-methods.json is generated from — so a Ruby private method legitimately ports underscored. Being last, it never moves an existing pairing. The fixed JS spellings (constructor, toString, toJSON, toSql, negate) are excluded: those are language-mandated names, not helper names.
Setter-form details: a Ruby name= writer matches the bare camel accessor first, and set#{Name} second. The set* fallback covers writers whose Rails body blocks on I/O — has_one's #{name}= removes and persists the displaced target inline — which a synchronous JS property setter cannot express. There the promise-returning setAccount is the port of account=. Both spellings are supported and both score as the port — the candidate list is a fallback chain, not a migration: a sync accessor alone still matches, as it always did. Underscore-prefixed writers (_reflections=) are class_attribute storage slots, never blocking writers, so they get no set* candidate. The ordering flips when the Ruby surface defines the matching reader too (beginning_of_week alongside beginning_of_week=): the reader has claimed the bare camel name, so the writer is offered set#{Name} first — unless Ruby also defines set_#{base}, whose own port already owns that spelling.
Name-collision details: a Ruby method whose name is also a JS property keeps its Rails name and stays a method — CollectionProxy#length (activerecord/lib/active_record/associations/collection_proxy.rb:786-795) is length(), not a length getter, because loading the target is asynchronous in trails and a property cannot await. Ruby has no property/method ambiguity, so person.pets.length counts there while collection.length here reads the METHOD. The delegated length therefore refuses primitive coercion (relation/delegation.ts): collection.length > 0 and ${collection.length} throw rather than silently reading NaN or the function source. Write await collection.length(), or await collection.size() for Rails' size.
Operators
These Ruby operator methods have no parity:api counterpart (map them to named methods like get()/set() as the surrounding code does):
[], []=, ==, ===, !=, <=>, <, <=, >, >=, +, -, *, /, %, &, |, ^, ~, !, !~, =~, >>, <<, ~@
The named spelling a given class picked is pinned per Ruby fqn in OPERATOR_SPELLING_BY_FQN (scripts/api-compare/operator-order-spelling.ts) — Arel::Math#* is multiply, Arel::Table#[] is get. Both the method-ORDER manifest and parity:api:extra resolve operators through that table, so a ported operator sorts into its Rails slot and does not read as extra surface. The pin is per-class on purpose: << is bitwiseShiftLeft on Arel::Math and means append on the collectors, so a global entry would mis-credit them.
Reserved-word locals
A Ruby local, parameter, or kwarg binding whose name is a JS reserved word (throw, default, class, …; JS_RESERVED_WORDS) cannot be a TS binding name. It is ported with a trailing underscore: translate(key = nil, throw: false, …) (i18n.rb:212) destructures { throw: throw_ = false } and passes throw_ on. parity:api:calls:args reads throw_ as Ruby throw. Any other spelling (throwOption) is a rename the gate reports.
Token renames
Applied to every identifier before camelization (and the equivalent applies to file paths). A token is renamed when it starts the identifier or follows an underscore, and ends at an underscore, the end, or the next capital — so ERBUtilTest is TSEUtilTest and erb_util is tseUtil, while verb_name and Herbert are left alone. There is no erb anywhere in trails:
| Ruby token | trails token |
|---|---|
erb | tse |
rb | js |
ERB | TSE |
Erb | Tse |
irb | tsrepl |
IRB | TSREPL |
Irb | Tsrepl |
rubocop | eslint |
RuboCop | ESLint |
Rubocop | Eslint |
capybara | vitest |
Capybara | Vitest |
yarn | pnpm |
Yarn | Pnpm |
rails | trails |
Rails | Trails |
RAILS | TRAILS |
ViteRuby | ViteAssets |
ViteRails | ViteTrails |
Test names are not an exception. Rails' test "ERB::Util.html_escape should escape unsafe characters" (activesupport/test/core_ext/string_ext_test.rb:1086) is it("TSE::Util.html_escape should escape unsafe characters") in core-ext/string-ext.test.ts. It still credits: normalizeErb in scripts/test-compare/compare.ts applies this table to both sides of the comparison, so the Ruby name and the TSE-spelled trails name normalize to the same key. ERB survives in trails only where the text quotes the Ruby side — a JSDoc Mirrors: line naming ERB::Util, a Rails path like core_ext/erb/util.rb, or fixtures-compare's statuses for Rails YAML that genuinely is ERB.
File paths
Ruby foo_bar.rb → foo-bar.ts (kebab-case), with these path-segment aliases applied first (trails railties are not Rails::Railtie subclasses):
| Ruby segment | trails segment |
|---|---|
yarn | pnpm |
railtie | trailtie |
railties | trailties |
Rails nests each command one directory deep and suffixes the file; trails flattens both segments onto one file, so commands/<dir>/<dir>_command.rb → commands/<dir kebab-cased>.ts (commands/unused_routes/unused_routes_command.rb → commands/unused-routes.ts). The directory and the file's stem must agree; anything else takes the plain kebab-case rule.
Skipped methods
parity:api never expects a TS counterpart for these Ruby methods:
- Ruby core object methods outside
PROTOCOL_DEFINITION_NAMES: identity (object_id,equal?,class), reflection (instance_of?,instance_variable_get/instance_variable_set/instance_variables), dispatch (tap,yield_self), numeric coercion (to_i,to_f,to_r,to_c), andclone.clone,object_id,class,tap,yield_self,instance_of?,equal?,instance_variable_get,instance_variable_set,instance_variables,to_i,to_f,to_r,to_c
- PERMANENT — dispatch by name and visibility reflection. trails has no runtime visibility, so
send/public_senddispatch alike and the*_methods/*_method_defined?readers have no fact to report (CLAUDE.md § "Method visibility is compile-time only"). A dispatch with a literal name is spelled as the direct member call (CLAUDE.md § "A dispatch by name is spelled directly").send,public_send,public_method_defined?,private_method_defined?,protected_method_defined?,public_methods,private_methods,protected_methods,public_instance_methods,public_instance_method
- Scored per definition in
PROTOCOL_DEFINITION_ENROLLED_PACKAGES, and skipped elsewhere only until that package's burndown story enrolls it (RFC 0156): these translate directly, so a Ruby file defining one expects it in the mirroring TS file.inspect,pretty_print,dup,initialize_copy,initialize_dup,encode_with,init_with,to_a,to_h,to_hash
- PERMANENT for scoring by name — JS spells
is_a?asinstanceof, customised bystatic [Symbol.hasInstance]on the class tested AGAINST, soTimeWithZone#is_a?(Time)ports as a hook onTime. A same-namedisAis judged against its Rails body per class (CLAUDE.md § "Ruby protocol methods with a different JS mechanism").is_a?,kind_of?
- Decided per class — the JS mechanism is a
Proxytrap, or typed forwarders, andrespond_to?isrbObjRespondTo, a function;insees no name arespond_to_missing?answers (CLAUDE.md § "Ruby protocol methods with a different JS mechanism", which lists every Rails definer).method_missing,respond_to_missing?,respond_to?
- Ruby module lifecycle hooks — no TypeScript equivalent.
extended,included,inherited,append_features,prepend_features
- Ruby object hooks — no TypeScript equivalent.
singleton_method_added
- Ruby constant-resolution hook — the VM calls it when a constant name misses. JS resolves nothing at runtime by name, so there is no slot for it.
const_missing
- CheckPending helpers — depend on Rails.root, system("bin/rails ..."), and the ActiveRecord::Tasks infrastructure that has no JS equivalent.
any_schema_needs_update?,db_configs_in_current_env,load_schema!
Scoped skipped methods
parity:api skips these Ruby methods, but only within the listed files — they have a real TS surface elsewhere, so the skip is file-scoped to avoid silencing a genuine gap:
- not called by trails (RFC 0259 § "Scoping nokogiri and libxml-ruby"). PERMANENT.
scan_str,load_file,scan_file(only in:css/tokenizer.rb)
- not called by trails (RFC 0259 § "Scoping nokogiri and libxml-ruby"). PERMANENT.
meta_encoding,meta_encoding=(only in:html4/document.rb)
- not called by trails (RFC 0259 § "Scoping nokogiri and libxml-ruby"). PERMANENT.
block?(only in:html4/element_description.rb)
- not called by trails (RFC 0259 § "Scoping nokogiri and libxml-ruby"). PERMANENT.
implied_start_tag?,implied_end_tag?,save_end_tag?,deprecated?,default_sub_element,optional_attributes,deprecated_attributes,required_attributes,name,name=,startTag,startTag=,endTag,endTag=,saveEndTag,saveEndTag=,empty,empty=,depr,depr=,dtd,dtd=,isinline,isinline=,desc,desc=,subelts,subelts=,defaultsubelt,defaultsubelt=,attrs_opt,attrs_opt=,attrs_depr,attrs_depr=,attrs_req,attrs_req=,initialize(only in:html4/element_description_defaults.rb)
- not called by trails (RFC 0259 § "Scoping nokogiri and libxml-ruby"). PERMANENT.
encoding_found(only in:html4/encoding_reader.rb)
- not called by trails (RFC 0259 § "Scoping nokogiri and libxml-ruby"). PERMANENT.
finish(only in:html4/sax/push_parser.rb)
- not called by trails (RFC 0259 § "Scoping nokogiri and libxml-ruby"). PERMANENT.
HTML5(only in:html5.rb)
- not called by trails (RFC 0259 § "Scoping nokogiri and libxml-ruby"). PERMANENT.
libxml2_using_system?,to_markdown(only in:version/info.rb)
- not called by trails (RFC 0259 § "Scoping nokogiri and libxml-ruby"). PERMANENT.
Reader(only in:xml.rb)
- not called by trails (RFC 0259 § "Scoping nokogiri and libxml-ruby"). PERMANENT.
deconstruct_keys(only in:xml/attr.rb)
- not called by trails (RFC 0259 § "Scoping nokogiri and libxml-ruby"). PERMANENT.
namespace_inheritance,namespace_inheritance=,create_comment,collect_namespaces,validate,slop!,deconstruct_keys(only in:xml/document.rb)
- not called by trails (RFC 0259 § "Scoping nokogiri and libxml-ruby"). PERMANENT.
html_dtd?,html5_dtd?(only in:xml/dtd.rb)
- not called by trails (RFC 0259 § "Scoping nokogiri and libxml-ruby"). PERMANENT.
decorate!,swap,default_namespace=,previous,previous=,add_namespace,classes,add_class,append_class,remove_class,kwattr_values,kwattr_add,kwattr_append,kwattr_remove,has_attribute?,read_only?,elem?,css_path,write_html_to,write_xhtml_to,write_xml_to,deconstruct_keys,keywordify,write_format_to,related_class(only in:xml/node.rb)
- not called by trails (RFC 0259 § "Scoping nokogiri and libxml-ruby"). PERMANENT.
add_class,append_class,remove_class,remove_attr(only in:xml/node_set.rb)
- not called by trails (RFC 0259 § "Scoping nokogiri and libxml-ruby"). PERMANENT.
xmldecl,start_element_namespace,end_element_namespace,comment,processing_instruction(only in:xml/sax/document.rb)
- not called by trails (RFC 0259 § "Scoping nokogiri and libxml-ruby"). PERMANENT.
parse_file,related_class,localname,localname=,prefix,prefix=,uri,uri=,value,value=(only in:xml/sax/parser.rb)
- not called by trails (RFC 0259 § "Scoping nokogiri and libxml-ruby"). PERMANENT.
str2,str3,int1(only in:xml/syntax_error.rb)
- PERMANENT: the non-MRI
WeakSetarm (RUBY_ENGINE != "ruby", descendants_tracker.rb:27-53); trails ports the MRI arm, aWeakSet < ObjectSpace::WeakMap.initialize,include?(only in:descendants_tracker.rb)
- PERMANENT:
require_rexml(xml_mini/rexml.rb:41-46) loads the rexml gem on first parse; trails' REXML port is a static ES import, sodefined?(REXML::Document)always holds and there is nothing to load.require_rexml(only in:xml_mini/rexml.rb)
- not called by activerecord
query_info,info(only in:client.rb)
- not called by activerecord or actioncable (packages/pg/CLAUDE.md, "The pg port carries only what trails calls"). PERMANENT.
version_string,make_shareable,warn,require_bigdecimal_without_warning,init_openssl,init_ssl,isthreadsafe(only in:../pg.rb,pg.rb)
- not called by activerecord or actioncable (packages/pg/CLAUDE.md, "The pg port carries only what trails calls"). PERMANENT.
quote_connstr,connect_hash_to_string,parse_connect_args,copy_data,transaction,conndefaults,conninfo_hash,ssl_attributes,check_socket,get_result,get_copy_data,setnonblocking,isnonblocking,put_copy_data,put_copy_end,encrypt_password,new,ping,async_send_api=,async_api=,async_get_result,async_get_copy_data,async_setnonblocking,async_isnonblocking,nonblocking?,async_put_copy_data,async_put_copy_end,async_encrypt_password,async_reset,async_cancel,isthreadsafe,async_connect,connect,open,setdb,setdblogin,async_ping,async_describe_portal,async_describe_prepared,async_exec_params,async_exec_prepared,async_flush,async_get_last_result,async_prepare,async_query,async_set_client_encoding,backend_key,backend_pid,connect_poll,connect_start,connection_needs_password,connection_used_password,conninfo,conninfo_parse,consume_input,db,decoder_for_get_copy_data,decoder_for_get_copy_data=,describe_portal,describe_prepared,discard_results,encoder_for_put_copy_data,encoder_for_put_copy_data=,enter_pipeline_mode,error_message,escape_literal,exit_pipeline_mode,external_encoding,field_name_type,field_name_type=,flush,flush_data=,get_client_encoding,getssl,host,hostaddr,internal_encoding,internal_encoding=,is_busy,lo_close,lo_creat,lo_create,lo_export,lo_import,lo_lseek,lo_open,lo_read,lo_seek,lo_tell,lo_truncate,lo_unlink,lo_write,loclose,locreat,locreate,loexport,loimport,lolseek,loopen,loread,loseek,lotell,lotruncate,lounlink,lowrite,make_empty_pgresult,notifies_wait,options,parameter_status,pass,pipeline_status,pipeline_sync,port,protocol_version,reset_poll,reset_start,reset_start2,send_describe_portal,send_describe_prepared,send_flush_request,send_prepare,send_query_params,send_query_prepared,set_default_encoding,set_error_context_visibility,set_error_verbosity,set_notice_processor,set_single_row_mode,socket,ssl_attribute,ssl_attribute_names,ssl_in_use?,sync_cancel,sync_connect,sync_describe_portal,sync_describe_prepared,sync_encrypt_password,sync_exec,sync_exec_params,sync_exec_prepared,sync_flush,sync_get_copy_data,sync_get_last_result,sync_get_result,sync_isnonblocking,sync_ping,sync_prepare,sync_put_copy_data,sync_put_copy_end,sync_reset,sync_set_client_encoding,sync_setnonblocking,trace,tty,untrace,user(only in:connection.rb)
- not called by activerecord or actioncable (packages/pg/CLAUDE.md, "The pg port carries only what trails calls"). PERMANENT.
field_names_as,autoclear?,binary_tuples,check,check_result,cleared?,cmd_status,cmdtuples,column_values,each_row,error_message,fformat,field_name_type,field_name_type=,field_values,fname,fnumber,freeze,fsize,getisnull,getlength,nfields,nparams,num_fields,num_tuples,oid_value,paramtype,res_status,result_error_message,result_status,result_verbose_error_message,stream_each,stream_each_row,stream_each_tuple,tuple,tuple_values,verbose_error_message(only in:result.rb)
- not called by activerecord or actioncable (packages/pg/CLAUDE.md, "The pg port carries only what trails calls"). PERMANENT.
==,marshal_dump,marshal_load,inspect_short,null_string,null_string=,type_map,type_map=(only in:coder.rb)
- not called by activerecord or actioncable (packages/pg/CLAUDE.md, "The pg port carries only what trails calls"). PERMANENT.
decode(only in:text_decoder/copy_row.rb,text_decoder/from_base64.rb,text_decoder/identifier.rb,text_decoder/record.rb,text_decoder/string.rb)
- not called by activerecord or actioncable (packages/pg/CLAUDE.md, "The pg port carries only what trails calls"). PERMANENT.
encode(only in:text_encoder/bytea.rb,text_encoder/copy_row.rb,text_encoder/float.rb,text_encoder/identifier.rb,text_encoder/quoted_literal.rb,text_encoder/record.rb,text_encoder/string.rb,text_encoder/to_base64.rb)
- not called by activerecord or actioncable (packages/pg/CLAUDE.md, "The pg port carries only what trails calls"). PERMANENT.
coders(only in:type_map_by_class.rb,type_map_by_mri_type.rb)
- not called by activerecord or actioncable (packages/pg/CLAUDE.md, "The pg port carries only what trails calls"). PERMANENT.
build_column_map,coders,max_rows_for_online_lookup,max_rows_for_online_lookup=,rm_coder(only in:type_map_by_oid.rb)
- not called by activerecord or actioncable (packages/pg/CLAUDE.md, "The pg port carries only what trails calls"). PERMANENT.
fit_to_copy_get,fit_to_query,fit_to_result,typecast_copy_get,typecast_query_param,typecast_result_value(only in:type_map_in_ruby.rb)
PG.library_versionisPQlibVersion()and node-pg links no libpq (packages/pg/CLAUDE.md, "The pg port carries only what trails calls"). PERMANENT.library_version(only in:pg.rb,../pg.rb)
ViteRuby::Commands#legacy_yarn_version?(vite_ruby/lib/vite_ruby/commands.rb:44-46) and itsYARN_PRODUCTIONarm (lib/tasks/vite.rake:92-94) are not ported: trails apps use pnpm, never yarn (CLAUDE.md, "importmap-rails and propshaft are out of scope"). PERMANENT.legacy_yarn_version?(only in:commands.rb)
- Zeitwerk's
Module#autoloadandKernel#requiredecorations are not ported: JS has no hook on an unresolved identifier and no synchronousimport()(CLAUDE.md, "Module#autoloadis a build step"). PERMANENT.require,const_added(only in:core_ext/kernel.rb,core_ext/module.rb)
Loader.for_gem,for_gem_extensionandRegistry.loader_for_gemare not ported: trails has no Ruby packaging concept, andRegistry.loaderForPackagereads apackage.json(RFC 0213 § "Non-goals", owner decision on trails#9619). PERMANENT.for_gem,for_gem_extension,loader_for_gem,gem_loaders_by_root_file(only in:loader.rb,registry.rb)
Testing::Isolation::Forking#run_in_isolationis not ported: Ruby'sforkhas no Node counterpart (CLAUDE.md, "Runtime facts Node does not expose"), so only the Subprocess arm'srunInIsolationexists. PERMANENT.run_in_isolation(only in:isolation.rb; ported in TS asrunInIsolation)
- tasks RFC 0204-actionmailer-and-mail-port, Transport edges: the socket is nodemailer's
SMTPConnection, so Net::SMTP's socket setup members are not ported. PERMANENT.tcp_socket,ssl_socket,new_internet_message_io(only in:smtp.rb,authenticator.rb,auth_plain.rb,auth_login.rb,auth_cram_md5.rb,auth_xoauth2.rb)
- Rake's
ThreadPool#__queue__is a test-only reader, and cpu_counter.rb'sunless method_defined?(:count)fallback is kept from loading byEtc.nprocessors. PERMANENT.initialize,__queue__,count_via_java_runtime,count_via_win32,count_via_cpuinfo,count_via_sysctl,run,resolve_command,look_for_command,in_path_command(only in:thread_pool.rb,promise.rb,cpu_counter.rb)
Integer#xchrandString#to_xs(builder xchar.rb:161-198) are theelsearm ofif String.method_defined?(:encode)(:97), a Ruby 1.8 fallback that no Ruby since 1.9 loads. Scoped to builder's xchar.rb.xchr,to_xs(only in:xchar.rb)
- Node's event loop stands in for Action Cable's
NIO::Selectorand its thread (CLAUDE.md, "Node's event loop stands in for Action Cable's nio4r selector").spawn,runandwakeupown and interrupt the selector thread (stream_event_loop.rb:62-133).spawn,run,wakeup(only in:connection/stream_event_loop.rb)
- redis.rb:212-252 switches on the redis-rb version. trails ports the redis-rb 5 arm (
extract_subscribed_client(conn)answersconn), which matches ioredis: it subscribes on the connection itself and has no inner raw client to write to. The redis-rb 4 arm'sSubscribedClient#send_commandwrites toconn._client, so it has no counterpart.send_command(only in:subscription_adapter/redis.rb)
Thor::Runner(runner.rb, thethorexecutable that installs and runs Thorfiles) is not ported, and theseThor::Utilmembers exist only for it:namespaces_in_contentandload_thorfileevaluate a Thorfile insideThor::Sandbox(util.rb:58-70, :153-166), anduser_home,thor_root,thor_root_globandglobs_for(util.rb:168-216) locate the Thorfiles installed under~/.thor. railties never reaches them. Scoped to thor's util.rb.namespaces_in_content,load_thorfile,user_home,thor_root,thor_root_glob,globs_for(only in:util.rb)
Thor::Util.escape_html(util.rb:280-282) isCGI.escapeHTML, called only byThor::Shell::HTML, which is not ported: there is no terminal rendering HTML. Scoped to thor's util.rb.escape_html(only in:util.rb)
Thor::Base.subclass_files(base.rb:137-139) groups subclasses by thecallerfile that defined them (register_klass_file, base.rb:144-150), and its only reader isThor::Runner, which is not ported. Scoped to thor's base.rb.subclass_files(only in:base.rb)
- The GC and allocation counters on Notifications::Event (notifications/instrumenter.rb:174-186, :213-227):
gc_timeandallocationsare differences ofnow_gc/now_allocations, which readGC.total_timeandGC.stat(:total_allocated_objects). A JS engine exposes neither — there is no counter to read without anode:*import the trails packages are forbidden — and a port returning a constant would report0allocations and0GC time for every event, i.e. read as measured when nothing was measured. Scoped to notifications/instrumenter.rb so the names stay expected anywhere a real counter is ported.gc_time,allocations,now_gc,now_allocations(only in:notifications/instrumenter.rb)
- ActiveSupport::Autoload plumbing that
NumberHelpergets fromextend ActiveSupport::Autoload(number_helper.rb:8-19):autoload,autoload_under,autoload_at,eager_autoloadandeager_load!register a constant name against a file for Zeitwerk to resolve on first reference, andeager_load!forces the whole set in production. ESM has no autoload — every converter module is a staticimportat the top of number-helper.ts, resolved before the module body runs — so there is nothing to register and nothing to force. Scoped to number_helper.rb so the names stay expected on the ported surface, dependencies/autoload.rb.autoload,autoload_under,autoload_at,eager_autoload,eager_load!(only in:number_helper.rb)
- Ruby's Marshal hooks on TimeWithZone (time_with_zone.rb:529-535):
marshal_dumpanswers the[utc, time_zone.name, time]tripleMarshal.dumpwrites andmarshal_loadrebuilds the receiver from it. JS has no Marshal — no core serializer that consults a per-class hook — so neither has a caller to answer, and a hand-rolled pair would be a trails invention rather than a port. Scoped to time_with_zone.rb.marshal_dump,marshal_load(only in:time_with_zone.rb)
- The
*_without_*halves of Rails' alias*method chains around Ruby's Time operators+/-/<=>/eql?(time/calculations.rb:304-355). Each aliases the core-Ruby operator, which in trails IS@blazetrails/date's ownTime#plus/#minus/#compare/#eql, so it has nothing of its own to name.at_without_coercion(:59) is the same case for coreTime.at. The\*\_with*\*halves are NOT skipped — they are ported ontoTimein core-ext/time/calculations.ts. Scoped to time/calculations.rb.plus_without_duration,minus_without_duration,minus_without_coercion,compare_without_coercion,eql_without_coercion,at_without_coercion(only in:core_ext/time/calculations.rb)
- Ruby method-(re)definition machinery:
silence_redefinition_of_methodexists to suppress MRI's method-redefined warning,redefine_singleton_methodwrapsdefine_singleton_methodin that suppression, andmethod_visibilityreports the public/protected/private state MRI stores per method (core_ext/module/redefine_method.rb:5-22). JS has no redefinition warning to silence — reassigning a prototype property is silent — and no runtime visibility state to query, so all three collapse to a plain assignment the port already does inline at every call site.silence_redefinition_of_method,redefine_singleton_method,method_visibility(only in:core_ext/module/redefine_method.rb)
- Ruby module-body metaprogramming DSL.
alias_attribute(core_ext/module/aliasing.rb) defines reader/writer/predicate methods bymodule_evaling generated source, which needs runtime source evaluation that does not exist in TypeScript. (ActiveRecord's ownalias_attributeis a separate method on ActiveRecord::Base and is ported there.)alias_attribute(only in:core_ext/module/aliasing.rb)
attr_internal_define(core*ext/module/attr_internal.rb:26-31) is the shareddefine_methodback end forattr_internal_reader/_writer, andattr_internal_naming_formatis theattr_accessor-generated pair for the@*%stemplate it interpolates. trails'attrInternal\*helpers assign the underlying property directly rather than generating methods from a name template, so there is no format string to expose and no define_method back end to name.attr_internal_define(only in:core_ext/module/attr_internal.rb)
attr_internal_naming_formatis aclass << selfattr_readerbeside a hand-writtenattr_internal_naming_format=(core_ext/module/attr_internal.rb:22-35). A module-level binding has no accessor syntax in TS, so the pair is ported asgetAttrInternalNamingFormat/setAttrInternalNamingFormat(module-ext.ts).attr_internal_naming_format(only in:core_ext/module/attr_internal.rb; ported in TS asgetAttrInternalNamingFormat/setAttrInternalNamingFormat)
String#squish!andString#remove!(core_ext/string/filters.rb:21-25,40-46) mutate the receiver viagsub!/strip!. A JS string is an immutable primitive — there is no receiver to mutate and no way to hand the caller back a changed one — so the bang forms cannot exist;squishandremoveare the whole surface.squish!,remove!(only in:core_ext/string/filters.rb)
- ActiveSupport::Duration#+@ (
def +@; self; end, duration.rb:326) is Ruby's unary-plus operator returning self. TS has no syntax that dispatches to a named method for+duration— the unary+coerces throughvalueOf()to a number — so a portedidentity()method would be inert dead code no caller can reach (unlike-@→negate, which is called fromminus()viaother.negate()). Date::Infinity#+@ (def +@() self.class.new(+d) end, date's lib/date.rb:33) is the same operator in the same situation, and nothing in date.rb calls it by name. Scoped to duration.rb and date.rb so it can't silence a genuine+@gap elsewhere.+@(only in:duration.rb,date.rb)
config/config_file/read_configare the memoized read of test/config.yml; trails ships no config.yml — theconnections:hash is expressed directly as the CONNECTIONS table in packages/activerecord/test/support/connection.ts and the sub-setting readers in config.ts — so there is no file to locate, copy from config.example.yml, or parse. Scoped to config.rb, the only Ruby file in the tree that defines these names.expand_configis NOT skipped: it is ported at connection.ts and pairs there now that the reopened-module bucketing is fixed.config,config_file,read_config(only in:config.rb)
ActiveModel::API#initialize(api.rb:78-81) is aninitializeon a Concern, so in Ruby it joins the host's constructor chain viasuperwhen a class doesinclude ActiveModel::API. TypeScript has no expression for that:include()(packages/ruby-compat/lib/include.ts) copies prototype members and cannot install a constructor, so the port keeps the Rails name as an exportedinitializefunction that each including class calls from its own constructor (model.ts). There is no TSconstructorat the mapped site for the comparison to find — the same shapeActiveSupport::Messages::Rotator#initializeabove already carries. Scoped to api.rb so a real class'sinitializeis still expected to map to aconstructor.initialize(only in:api.rb; ported in TS asinitialize)
Thor::Option#initialize(parser/option.rb:7-16) assigns@check_default_typeand@repeatableand only then callssuper, andThor::Argument#initialize(parser/argument.rb:8-26) ends invalidate!, whoseOptionoverride reads both ivars (option.rb:126-158). A JS constructor cannot touchthisbeforesuper()returns, so the port keeps the Ruby name as aninitializemethodArgument's constructor delegates to andOptionoverrides, callingsuper.initializewhere Ruby callssuper— the same shapeActiveRecord::Fixture#initializeabove already carries. Scoped to thor's parser/argument.rb and parser/option.rb so a real class'sinitializeis still expected to map to aconstructor.initialize(only in:parser/argument.rb,parser/option.rb; ported in TS asinitialize)
- PERMANENT: trailties CLAUDE.md, "A Gemfile is a package.json (
GemfileEntry,bundle install, gemspec)": Puma (web_server_gemfile_entry), propshaft (asset_pipeline_gemfile_entry), jbuilder (jbuilder_gemfile_entry) andbundle lock --add-platform(add_bundler_platforms) are rows that section marks not ported.web_server_gemfile_entry,asset_pipeline_gemfile_entry,jbuilder_gemfile_entry,add_bundler_platforms(only in:generators/app_base.rb)
- PERMANENT:
ensure_fiber_workers_have_required_dependency(configuration.rb:136-143) onlyrequires theasyncgem, which trails inlines into FiberPool (packages/solid-queue/CLAUDE.md, "FiberPoolinlines theasyncgem").ensure_fiber_workers_have_required_dependency(only in:configuration.rb)
- PERMANENT: Interruptible's self-pipe (processes/interruptible.rb:5-8,17,34-38) wakes a sleeping process through
IO.pipe; a Node process has one thread, sointerrupt/interruptible_sleepwake through a ruby-compatQueue.self_pipe,create_self_pipe(only in:processes/interruptible.rb)
- PERMANENT: Ruby-engine facts with no Node analogue.
jruby?(generators/app_base.rb:747-749) isdefined?(JRUBY_VERSION), andversion_manager_ruby_version(:751-761) fills onlyruby-version.ttfrom rbenv, rvm andRUBY_ENGINE; a trails app runs on Node and writes no.ruby-version.jruby?,version_manager_ruby_version(only in:generators/app_base.rb)
- PERMANENT:
ParserExtractorports itsif defined?(Prism)arm (source_annotation_extractor.rb:25-33) over the TypeScript scanner;Parser < Ripperwithcomments/on_comment(:35-47) is the fallback for a Ruby without Prism and has no JS counterpart.comments,on_comment(only in:source_annotation_extractor.rb)
- PERMANENT:
LineFiltering.extendedpicksMT5#runorMT6#run_suitebyMinitest::VERSION(test_unit/line_filtering.rb:7-15). trails has one runner, so the port carries the singlerunarm, and Minitest is not ported (operator ruling, 2026-11-24).run_suite(only in:test_unit/line_filtering.rb)
- PERMANENT: trailties CLAUDE.md, "A Gemfile is a package.json (
GemfileEntry,bundle install, gemspec)":githubwrites a Gemfilegithubsource block, andappend_file_with_newlineappends a Gemfile line forgem/gem_group/github(generators/actions.rb:125-140, :511-515);gemwrites thepackage.jsonentry instead, so neither has a mapped artifact.github,append_file_with_newline(only in:generators/actions.rb,generators/base.rb)
- PERMANENT: trailties CLAUDE.md, "A Gemfile is a package.json (
GemfileEntry,bundle install, gemspec)": benchmark-ips (add_ips_to_gemfile, and theips_installed?guard it sits behind, rails/benchmark/benchmark_generator.rb:18-27) is a row that section marks not ported, and.ruby-version(ruby_version, rails/app/app_generator.rb:54-56) maps onto.node-version, whichnode_versionalready writes.add_ips_to_gemfile,ips_installed?,ruby_version(only in:generators/rails/benchmark/benchmark_generator.rb,generators/rails/app/app_generator.rb)
- PERMANENT: trailties CLAUDE.md, "
TestParserreads TypeScript, so its Ripper fallback is not ported".class TestParser < Ripper(test_unit/test_parser.rb:52-133) is the fallback for a Ruby without Prism, parsing Ruby through Ripper's event callbacks. The port reads TypeScript through the compiler API in the Prism arm'sranges, so no Ripper event exists to handle.initialize,parse,on_def,on_method_add_block,on_command_call,first_arg,just_lineno,on_method_add_arg,on_command,on_stmts_add,on_arg_paren,on_bodystmt,on_ident,on_do_block,on_stmts_new,on_brace_block,on_args_new,on_args_add,on_args_add_block(only in:test_unit/test_parser.rb)
Dependencies.search_for_file(dependencies.rb:83-90) has one caller,require_dependency(dependencies/require_dependency.rb:18), which appends.rband searchesautoload_pathsto handKernel#requirean absolute path.require_dependencyis obsolete in Rails and is not ported: ESM has no synchronousrequire, and a constant is reached by a plain ES import (CLAUDE.md, "Call-time constant resolution"). Scoped to dependencies.rb.search_for_file(only in:dependencies.rb)
Date#acts_like_date?(core_ext/date/acts_like.rb:7), DateTime'sacts_like_date?/acts_like_time?(core_ext/date_time/acts_like.rb:8-14) andTime#acts_like_time?(core_ext/time/acts_like.rb:6-8) are marker methods: Ruby reopens the class to hang an empty predicate on it soObject#acts_like?can find it withrespond_to?. Two things follow, and they differ by receiver. (1)Time#acts_like_time?IS ported, as a real marker method: trails'::Timeis a class the port owns (packages/date/lib/time.ts), so the reopening ports literally andObject.actsLikeanswers its:timearm throughrespond_to?exactly as Ruby does. It is skipped HERE only because activesupport cannot reopen another package's class, so the member lands at that class rather than at this Rails path. (2) The remaining receivers —Temporal.PlainDate/PlainDateTime/ZonedDateTime/Instantand a JSDate— are built-ins the port does not monkey-patch, so their markers areTEMPORAL_METHOD_TABLEseats (packages/date/lib/acts-like.ts) thatObject.actsLike'srespond_to?finds, seated by the package that owns the Temporal receivers rather than at this Rails path. Scoped to the three acts_like.rb files:TimeWithZone#acts_like_time?is a real method on a trails-owned class and IS ported (time-with-zone.ts:858).acts_like_date?,acts_like_time?(only in:core_ext/date/acts_like.rb,core_ext/date_time/acts_like.rb,core_ext/time/acts_like.rb)
- ActiveSupport::Concurrency::ShareLock (concurrency/share_lock.rb) is a reader-writer lock built on
Monitor+ConditionVariable: it tracks per-Thread share counts, blocks a thread until the waiters it conflicts with drain, and exists because MRI preempts threads between any two bytecodes. JS has no preemption — a turn of the event loop runs to completion — so there is no window for the sharing/exclusive counts to be observed torn, and nothing for a thread to block on: trails' Interlock/Executor callers take the null lock (concurrency/null-lock.ts), which is what Rails itself substitutes when it does not need the real one. Scoped to share_lock.rb soexclusive,sharing,initializeandraw_statestay expected everywhere else.initialize,raw_state,start_exclusive,stop_exclusive,start_sharing,stop_sharing,exclusive,sharing,yield_shares,busy_for_exclusive?,busy_for_sharing?,eligible_waiters?,wait_for(only in:concurrency/share_lock.rb)
- ActiveSupport::Testing::Parallelization::Server and ::Worker (testing/parallelization/server.rb, worker.rb) are the two halves of the fork-based parallel runner skipped against parallelization.rb above: the Server is a DRb-published queue of test jobs, the Worker is the forked child that pops from it, re-runs the setup hooks and reports back over DRb. vitest owns process/worker parallelism and work distribution in trails, so neither half has an object to hang off. Scoped to the two files.
initialize,record,pop,start_worker,stop_worker,active_workers?,interrupt,shutdown,work_from_queue,perform_job,safe_record,after_fork,run_cleanup,add_setup_exception,set_process_title(only in:testing/parallelization/server.rb,testing/parallelization/worker.rb)
- ActiveSupport::Testing::Parallelization (testing/parallelization.rb) forks OS processes, hands each one a DRb queue and re-runs the setup hooks in the child. vitest owns process/worker parallelism in trails — the pool, the work distribution and the per-worker setup are all its config, not something the port reimplements — so there is no trails object for
size/shutdown/ the fork hooks to hang off. Scoped to parallelization.rb sosize,shutdownandinitializestay expected everywhere else.after_fork_hooks,run_cleanup_hooks,initialize,size,shutdown,after_fork_hook,run_cleanup_hook(only in:testing/parallelization.rb)
- The minitest runner plumbing on ActiveSupport::TestCase (test_case.rb):
parallelize/parallelize_setup/parallelize_teardownconfigure the fork-based parallel runner (see the parallelization.rb group), andmethod_nameis thealias_method :method_name, :nameonto Minitest::Test#name. vitest is the runner in trails: it owns worker parallelism, so none of these has a port to point at.test_order/test_order=are NOT skipped: they read and write theActiveSupport.test_orderglobal (test_case.rb:34-46, active_support.rb:100), a value seat that is portable whoever runs the tests. (Thetest "..." domacro test_case.rb:153 extends in is skipped against its own file, testing/declarative.rb.) Scoped to test_case.rb — the assertion helpers this file picks up byinclude(assert_not*, assert_raises, assert_difference, assert_changes, assert_deprecated, stub_const, the TimeHelpers travel/freeze family) are NOT skipped: they are portable and still counted against testing/assertions.rb and its siblings.method_name,parallelize,parallelize_setup,parallelize_teardown(only in:test_case.rb)
- ActiveSupport::Testing::Declarative#test (testing/declarative.rb:13) is the
test "..." dodeclaration macro: it defines atest_<name>method on the class for minitest to discover by reflection. vitest discovers nothing by reflection — a test is theit("...")call itself, which is also the spelling parity:test matches Rails test names through — so the macro has no port to point at. Scoped to declarative.rb, its only definition site (test_case.rb:153 merelyextends the module), soteststays expected anywhere it is a real method.test(only in:testing/declarative.rb)
- MemoryStore#synchronize (memory_store.rb:191-193) is
@monitor.synchronize(&block)— the Monitor that makes MemoryStore thread-safe across Ruby threads. JavaScript has no threads and no preemption inside a synchronous body, so every read_entry/write_entry the Ruby method wraps is already atomic and a ported wrapper could only be an inertblock()call. Scoped to memory_store.rb so it cannot silence a genuinesynchronizeelsewhere.synchronize(only in:cache/memory_store.rb)
- FileStore#lock_file (file_store.rb:147-159) takes an advisory
File::LOCK_EXflock around a read-modify-write so concurrent PROCESSES serialize on the entry file. There is no flock in the async fs surface trails is allowed to use (no node:* imports), and no portable equivalent, so the increment/decrement path runs unguarded. Scoped to cache/file_store.rb.lock_file(only in:cache/file_store.rb)
Rack::Headersaliaseskey?tohas_key?(headers.rb:144-147). Dropping a predicate's?mapskey?onto the TS spellingkey, butheaders.tsalready spellsHash#key(value)— the value-to-key lookup Headers inherits rather than redefines, and which rack's own suite exercises — at that name, so the mapped site is occupied by a DIFFERENT Ruby method. The faithful port of the alias ishasKey(headers.ts:52), the port of thehas_key?it aliases; a second declaration could only be a synonym under a name Rails does not have. Scoped to headers.rb sokey?stays expected wherever the spelling is free.include?andmember?, the other two aliases, map to free spellings and stay reported.key?(only in:headers.rb; ported in TS ashasKey)
- PERMANENT —
ActiveRecord::Core#to_ary(core.rb:822-832) is private and answersnil, defined only soArray#flattendoes not reach a record'smethod_missing. A trails record has nomethod_missingto reach (CLAUDE.md § "Records are not Proxies"), and a private method is visible torbObjRespondTo(CLAUDE.md § "Method visibility is compile-time only"), so atoArymember would make every record answerrespond_to?(:to_ary), which Rails' record does not:serializable_hash(active_model/serialization.rb:141) andfields_for_with_nested_attributes(form_helper.rb:2713-2718) branch on it. Scoped to core.rb, and to base.rb, which includesCore, so every otherto_arystays scored.to_ary(only in:core.rb,base.rb)
ActiveRecord::Relation#then(relation.rb:1157-1165) chains a block onto the relation's@future_result, else falls toKernel#then. A trails relation is evaluated by an async query, soRelation.prototypecarries thethen/catch/finallythatawait relcalls, installed byapplyThenableand declared on the class without a body (packages/activerecord/CLAUDE.md § "Relationis evaluated by an async query"). Scoped to relation.rb soFutureResult#thenand any other definition stay scored.then(only in:relation.rb)
OutputBufferdelegatesencoding,encode!andforce_encodingto its raw String (buffers.rb:27). Each reads or rewrites a String's encoding tag, which a JS string does not have (CLAUDE.md § "A String has no encoding tag either"). PERMANENT.encoding,encode!,force_encoding(only in:buffers.rb)
Template#offsetand#locals_code(template.rb:541-576) build themodule_evalline offset and the Ruby locals binding ofcompiled_source, whichvirtualizeTsewrites as TypeScript at build time;#find_node_by_id(template.rb:405-415) walks the Prism treespotparses, andspotis line-based (CLAUDE.md § "Templates are precompiled"). PERMANENT.offset,locals_code,find_node_by_id(only in:template.rb)
Ruby-only classes
parity:api expects no TS counterpart for these Ruby classes at all — neither their methods nor their place in the inheritance chain. Each one only papers over a gap in the Ruby standard library that JavaScript does not have:
I18n::JSONi18n/lib/i18n/backend/key_value.rb:7-22definesI18n::JSONat load time as whichever JSON library is installed —:11/:14wrapOjinencode/decodewhen the gem is present, and:19-:21falls back toJSON = ActiveSupport::JSON. It is a library-selection shim, not behavior: JavaScript hasJSONin the language, and itsstringify/parseare thatencode/decode, which is whatKeyValuecalls directly (packages/i18n/lib/backend/key-value.ts). Mirroring it would mean adding a trails class whose whole body forwards to a global the language already provides.
Arity overrides
The advisory arity check (arity.ts) suppresses these Ruby methods — their positional-arg ranges diverge from the TS port for a documented reason (a Ruby alias/delegate the extractor reads as zero-arg, a porting-pattern artifact), not a real signature gap:
validates_size_ofisalias_method :validates_size_of, :validates_length_of, so the Ruby extractor records the alias with zero positional params (the alias definition carries no signature) while the TS port spells the real(attribute, options)signature it forwards to.validates_size_of
match?isdelegate :match?, to: :@name(forwards to String#match?), so the Ruby extractor records the delegation with zero positional params while the TS port spells the real(pattern)signature.match?
build_having_clauseisalias :build_having_clause :build_where_clause(query_methods.rb:1654), so the Ruby extractor records the alias with zero positional params while the TS port spells the real(opts, rest)signature it forwards to build_where_clause.build_having_clause
- Static-host porting pattern (CLAUDE.md): these Rails instance/class methods are ported as free functions taking the host class explicitly as a leading
clsparam, so the TS arity is one higher than Rails. The receiver is the definitional self, not a real extra argument.apply_pending_attribute_modifications,reset_default_attributes
- The real
parse_floatport isparseFloatRails(num, precision, scale?), bound to the validator via prototype assignment plus adeclare parseFloattype member; the by-name candidate pool only sees the zero-argdeclareform, not the implementation's arity.parse_float
prepare_delete_statementisalias :prepare_delete_statement :prepare_update_statementin both to_sql.rb and mysql.rb, so the Ruby extractor records the alias with zero positional params (the alias definition carries no signature) while the TS port spells the real(o)signature it forwards to.prepare_delete_statement
- Arel::Visitors::ToSql aliases a family of Ruby value classes to a shared visitor body (
alias :visit_X :unsupported,:visit_Set :visit_Array,:visit_Arel_Nodes_Quoted :visit_Arel_Nodes_Casted), so the Ruby extractor records each alias with zero positional params (the alias definition carries no signature) while the TS port spells the real(o)/(o, collector)signature it forwards to. (ToSql-only names; aliases also defined in dot.rb live in the shared group below.)visit_Arel_Nodes_Quoted,visit_ActiveSupport_Multibyte_Chars,visit_ActiveSupport_StringInquirer,visit_Class,visit_Hash,visit_String
- Arel::Visitors::Dot aliases its node visitors to shared bodies (
visit__regexp,visit__no_edges,visit__children,visit_String,visit_Array), so the Ruby extractor records each alias with zero positional params (the alias definition carries no signature) while the TS port spells the real(o)signature it forwards to. (Dot-only names; aliases also defined in to_sql.rb live in the shared group below.)visit_Arel_Nodes_Regexp,visit_Arel_Nodes_NotRegexp,visit_Arel_Nodes_CurrentRow,visit_Arel_Nodes_Distinct,visit_Arel_Nodes_And,visit_Arel_Nodes_Or,visit_Arel_Nodes_With,visit_Integer,visit_Arel_Nodes_SqlLiteral
- Ruby value-class visit aliases defined in BOTH to_sql.rb (alias to
unsupported) and dot.rb (alias tovisit_String/visit_Array); the extractor reads each alias as zero-arg in either file while the TS ports spell the real(o)signature. Scoped to both files (one entry per name keeps the override-name set globally unique).visit_BigDecimal,visit_Date,visit_DateTime,visit_FalseClass,visit_Float,visit_NilClass,visit_Symbol,visit_Time,visit_TrueClass,visit_Set