instance method
Prism::Comment#slice
slice
lib/prism/parse_result.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/prism/parse_result.rb, line 527
def slice
location.slice
end
Returns the content of the comment by slicing it from the source code.