You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: split Stdlib::Functions into autoloaded adapters
Extract RababaAdapter and SecrystAdapter from the monolithic Functions
module into their own files, autoloaded from the parent namespace.
Simple text-transform functions (title_case, downcase, compose, etc.)
stay inline since they have no heavy dependencies.
- lib/interscript/stdlib.rb: add autoload :Functions entry
- lib/interscript/stdlib/functions.rb: parent namespace file with
autoload for RababaAdapter and SecrystAdapter
- lib/interscript/stdlib/functions/rababa_adapter.rb: mutex-protected
diacritizer cache; reverse() works without the gem loaded
- lib/interscript/stdlib/functions/secryst_adapter.rb: per-model
translator cache
Public API (Interscript::Stdlib::Functions.<name>) is unchanged.
Callers in interpreter.rb and compiler/ruby.rb work without edits.
Zero require_relative added. Zero internal require added.
0 commit comments