Skip to content

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

instance method

Gem::RequestSet::GemDependencyAPI#ruby

ruby(version, options = {})

Restricts this gem dependencies file to the given ruby version.

You may also provide engine: and engine_version: options to restrict this gem dependencies file to a particular ruby engine and its engine version. This matching is performed by using the RUBY_ENGINE and RUBY_ENGINE_VERSION constants.

See also #platforms #source #platform also in 4.1 · 4.0 · 3.3 · 3.2 · 3.1 · 3.0