This represents a magic comment that was encountered during parsing.
Methods
- D
- I
- K
- N
- V
Attributes
[R] | key_loc | A |
[R] | value_loc | A |
Class Public methods
new(key_loc, value_loc) Link
Create a new magic comment object with the given key and value locations.
Instance Public methods
deconstruct_keys(keys) Link
Implement the hash pattern matching interface for MagicComment
.
inspect() Link
Returns a string representation of this magic comment.
key() Link
Returns the key of the magic comment by slicing it from the source code.