class SyntaxTree::TStringBeg
TStringBeg
represents the beginning of a string literal.
"string"
In
the example above, TStringBeg
represents the first set of quotes. Strings can also use single quotes. They can also be declared using the +%q+ and +%Q+ syntax, as in:
%q{string}
Attributes
- String
-
the beginning of the string
Public Class Methods
Source
# File lib/syntax_tree/node.rb, line 10953 def initialize(value:, location:) @value = value @location = location end
Public Instance Methods
Source
# File lib/syntax_tree/node.rb, line 10979 def ===(other) other.is_a?(TStringBeg) && value === other.value end
Source
# File lib/syntax_tree/node.rb, line 10958 def accept(visitor) visitor.visit_tstring_beg(self) end
Source
# File lib/syntax_tree/node.rb, line 10962 def child_nodes [] end
Also aliased as: deconstruct
Source
# File lib/syntax_tree/node.rb, line 10966 def copy(value: nil, location: nil) TStringBeg.new( value: value || self.value, location: location || self.location ) end
Source
# File lib/syntax_tree/node.rb, line 10975 def deconstruct_keys(_keys) { value: value, location: location } end