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

inspect() click to toggle source

Returns a string representation of this comment.

# File prism/parse_result.rb, line 253
def inspect
  "#<Prism::InlineComment @location=#{location.inspect}>"
trailing?() click to toggle source

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

# File prism/parse_result.rb, line 248
def trailing?