A flags field represents a bitset of flags on a node. It resolves to an integer in Ruby. Note that the flags cannot be accessed directly on the node because the integer is kept private. Instead, the various flags in the bitset should be accessed through their query methods.
Attributes
Read
The names of the flags in the bitset.
Class Methods
lib/prism/reflection.rb
View on GitHub
# File tmp/rubies/ruby-3.4.1/lib/prism/reflection.rb, line 97
def initialize(name, flags)
super(name)
@flags = flags
end
Initializes the flags field with the given name and flags.