Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Gem::Specification#rdoc_options=
rdoc_options=(options)
lib/rubygems/specification.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/specification.rb, line 2237
def rdoc_options=(options)
@rdoc_options = Array(options).flat_map do |opt|
opt.is_a?(Hash) ? opt.to_a.flatten.map(&:to_s) : opt
end
end
Sets rdoc_options to value, ensuring it is a flat array of strings. Handles malformed gemspecs where rdoc_options may be a Hash or contain Hashes.
See also
#rdoc_options
#removed_method_calls
#platform=
#required_rubygems_version=
also in
4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0