Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

class method

Ruby::Prism::MagicComment.new

new(key_loc, value_loc)

Create a new magic comment object with the given key and value locations.

: (Location key_loc, Location value_loc) -> void

See also #key #value