class method
Prism::StringQuery.query
query(result)
lib/prism/ffi.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/prism/ffi.rb, line 566
def query(result)
case result
when :PM_STRING_QUERY_ERROR
raise ArgumentError, "Invalid or non ascii-compatible encoding"
when :PM_STRING_QUERY_FALSE
false
when :PM_STRING_QUERY_TRUE
true
end
end
Parse the enum result and return an appropriate boolean.