Skip to content
On this page

Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →

class · Ruby 3.3

Prism::StringNode

< Prism::Node 15 instance methods 2 class methods

Represents a string literal, a string contained within a ‘%w` list, or plain string content within an interpolated string.

"foo"
^^^^^

%w[foo]
   ^^^

"foo #{bar} baz"
 ^^^^      ^^^^

Class methods 2

Instance methods 15

Attributes

attr_reader closing_loc: Location?

attr_reader content_loc: Location

attr_reader opening_loc: Location?

Read

attr_reader unescaped: String