class SyntaxTree::TStringEnd
Experimental RBS support (using type sampling data from the type_fusion
project).
# sig/syntax_tree/node.rbs class SyntaxTree::TStringEnd < SyntaxTree::Node def initialize: (value: String, location: SyntaxTree::Location) -> void end
%q{string}
and +%Q+ syntax, as in:
Strings can also use single quotes. They can also be declared using the +%q+
In the example above, TStringEnd represents the second set of quotes.
“string”
TStringEnd represents the end of a string literal.
def ===(other)
def ===(other) other.is_a?(TStringEnd) && value === other.value end
def accept(visitor)
def accept(visitor) visitor.visit_tstring_end(self) end
def child_nodes
def child_nodes [] end
def copy(value: nil, location: nil)
def copy(value: nil, location: nil) TStringEnd.new( value: value || self.value, location: location || self.location ) end
def deconstruct_keys(_keys)
def deconstruct_keys(_keys) { value: value, location: location } end
def initialize(value:, location:)
Experimental RBS support (using type sampling data from the type_fusion
project).
def initialize: (value: String, location: SyntaxTree::Location) -> void
This signature was generated using 16 samples from 1 application.
def initialize(value:, location:) @value = value @location = location end