instance method
Prism::DSL#loop_flag
loop_flag(name)
lib/prism/dsl.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/prism/dsl.rb, line 903
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
3.4