Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. 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.0 · 3.4