Skip to main content

Module ruby

Module ruby 

Source
Expand description

Ruby: gems, requires, risks, the gem-to-crate table, and module functions (def self.x, module_function) with YARD types mapped into the TS-like type dialect.

Functionsยง

discover
exports
Module functions: def self.name in a module or class, and methods after module_function or inside class << self. The receiver goes into prototype as Module::Path.name(...).
lookup
Rust counterparts of common gems.
receiver
The receiver and method name of an export: ("Textkit::Words", "slugify").
resolve
scan
signature
The parameter list as written: text, sep = "-", max: nil.
yard_to_ts
A YARD type list (String, nil, Array<Integer>, Hash{String => Integer}) in the dialect.