Skip to content
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 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0