instance method
Gem::YAMLSerializer#strip_comment
strip_comment(val)
lib/rubygems/yaml_serializer.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/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