Skip to content

Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →

instance method

Gem::SpecificationRecord#stubs_for_pattern

stubs_for_pattern(pattern, match_platform = true)

Finds stub specifications matching a pattern in the record, optionally filtering out specs not matching the current platform

See also #stubs_for #stubs also in 4.1 · 4.0