API Reference
Iconmap exposes a small runtime API via Rails.application.iconmap.
ruby
iconmap = Rails.application.iconmap
iconmap.packages # => Hash of pin name => MappedFileThe Map is intentionally minimal. The gem expects the developer to drive changes through the CLI rather than manipulating the map programmatically.
Additional notes:
Rails.application.iconmapis initialized by the engine during application boot and loads pins from all paths inconfig.iconmap.paths.iconmap.packagesreturns a Hash where each key is the pin string and the value is a smallMappedFile-like struct with metadata (resolved version, path to vendored file, etc.).- For most use-cases prefer referencing vendored files via Rails asset helpers rather than interacting with the map directly.