Skip to content
instance method

Prism::MagicComment#key

key

Returns the key of the magic comment by slicing it from the source code.

See also #inspect #value #deconstruct_keys also in 3.4 · 3.3