class Prism::InlineComment - Documentation for Ruby 4.1
Description: class Prism::InlineComment: InlineComment objects are the most common. They correspond to comments in the source file like this one that start with #.
Keywords: ruby,class,Prism::InlineComment

🔍

No recent searches

# class Prism::InlineComment

`InlineComment` objects are the most common. They correspond to comments in the source file like this one that start with #.

### Public Instance Methods

trailing? ()
Source

    # File lib/prism/parse_result.rb, line 745
    def trailing?
      !location.start_line_slice.strip.empty?
    end

Returns true if this comment happens on the same line as other code and false if the comment is by itself.