instance method
Prism::DSL#encoding_flag
encoding_flag(name)
lib/prism/dsl.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/prism/dsl.rb, line 866
def encoding_flag(name)
case name
when :forced_utf8_encoding then EncodingFlags::FORCED_UTF8_ENCODING
when :forced_binary_encoding then EncodingFlags::FORCED_BINARY_ENCODING
else Kernel.raise ArgumentError, "invalid EncodingFlags flag: #{name.inspect}"
end
end
Retrieve the value of one of the EncodingFlags flags.