class Prism::MagicComment
Experimental RBS support (using type sampling data from the type_fusion project).
# sig/prism/parse_result.rbs class Prism::MagicComment def initialize: (Prism::Location key_loc, Prism::Location value_loc) -> void end
This represents a magic comment that was encountered during parsing.
def deconstruct_keys(keys)
def deconstruct_keys(keys) { key_loc: key_loc, value_loc: value_loc } end
def initialize(key_loc, value_loc)
Experimental RBS support (using type sampling data from the type_fusion project).
def initialize: (Prism::Location key_loc, Prism::Location value_loc) -> void
This signature was generated using 4 samples from 1 application.
def initialize(key_loc, value_loc) @key_loc = key_loc @value_loc = value_loc end
def inspect
def inspect "#<Prism::MagicComment @key=#{key.inspect} @value=#{value.inspect}>" end
def key
def key key_loc.slice end
def value
def value value_loc.slice end