Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Gem::YAMLSerializer#strip_comment
strip_comment(val)
lib/rubygems/yaml_serializer.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/rubygems/yaml_serializer.rb, line 86
def strip_comment(val)
if val.include?("#") && !val.start_with?("#")
val.split("#", 2).first.strip
else
val
end
end
No documentation available