Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Prism::DSL#loop_flag
loop_flag(name)
lib/prism/dsl.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/prism/dsl.rb, line 900
def loop_flag(name)
case name
when :begin_modifier then LoopFlags::BEGIN_MODIFIER
else Kernel.raise ArgumentError, "invalid LoopFlags flag: #{name.inspect}"
end
end
Retrieve the value of one of the LoopFlags flags.
See also
#location
#match_last_line_node
#local_variable_write_node
#match_predicate_node
also in
4.0