summaryrefslogtreecommitdiff
path: root/transcode_data.h
diff options
context:
space:
mode:
authorKevin Newton <kddnewton@gmail.com>2023-09-11 11:31:52 -0400
committergit <svn-admin@ruby-lang.org>2023-09-11 16:18:32 +0000
commit719f83446613f1e18f1a38cff0e00e7be88bbe14 (patch)
tree4d8a9bb90a13b24f93296f579d367393c2675822 /transcode_data.h
parent05a853c2f21f60f9e1c544c2d0709f10de453571 (diff)
[ruby/yarp] Mark flags as private
The flags integer is an implementation detail. We want people to use the query methods to access the individual fields so we are freed from having to maintain a specific order. As such, this commit changes the Ruby API to mark all flags fields as private attr_readers. The only one that has a clear use case is returning the set of options given to regular expressions, to mirror the Regexp#options API. So, to support this use case, this commit introduces RegularExpressionNode#options and InterpolatedRegularExpressionNode#options. These APIs provide back the same integer so that they can be used interchangeably. https://github.com/ruby/yarp/commit/4e6d5dd99f
Diffstat (limited to 'transcode_data.h')
0 files changed, 0 insertions, 0 deletions