class YARP::Comment
Experimental RBS support (using type sampling data from the type_fusion
project).
# sig/yarp.rbs class YARP::Comment def initialize: (Symbol type, YARP::Location location) -> void end
This represents a comment that was encountered during parsing.
def deconstruct_keys(keys)
def deconstruct_keys(keys) { type: type, location: location } end
def initialize(type, location)
Experimental RBS support (using type sampling data from the type_fusion
project).
def initialize: (Symbol type, YARP::Location location) -> void
This signature was generated using 3 samples from 1 application.
def initialize(type, location) @type = type @location = location end
def inspect
def inspect "#<YARP::Comment @type=#{@type.inspect} @location=#{@location.inspect}>" end
def trailing?
def trailing? type == :inline && !location.start_line_slice.strip.empty? end