Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Prism::Pattern#compile_string_node
compile_string_node(node)
lib/prism/pattern.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/prism/pattern.rb, line 227
def compile_string_node(node)
string = node.unescaped
->(attribute) { string === attribute }
end
in “” in “foo”
See also
#compile_regular_expression_node
#compile_symbol_node
#compile_node
#scan
also in
4.0 · 3.3