class SyntaxTree::RegexpContent
Experimental RBS support (using type sampling data from the type_fusion
project).
# sig/syntax_tree/node.rbs class SyntaxTree::RegexpContent < SyntaxTree::Node def initialize: (beginning: String, parts: (Array[] | Array[SyntaxTree::TStringContent]), location: SyntaxTree::Location) -> void end
within the forward slashes.
In the example above, a RegexpContent node represents everything contained
/.+ #{pattern} .+/
RegexpContent represents the body of a regular expression.
def ===(other)
def ===(other) other.is_a?(RegexpContent) && beginning === other.beginning && parts === other.parts end
def accept(visitor)
def accept(visitor) visitor.visit_regexp_content(self) end
def child_nodes
def child_nodes parts end
def copy(beginning: nil, parts: nil, location: nil)
def copy(beginning: nil, parts: nil, location: nil) RegexpContent.new( beginning: beginning || self.beginning, parts: parts || self.parts, location: location || self.location ) end
def deconstruct_keys(_keys)
def deconstruct_keys(_keys) { beginning: beginning, parts: parts, location: location } end
def initialize(beginning:, parts:, location:)
Experimental RBS support (using type sampling data from the type_fusion
project).
def initialize: (beginning: String, parts: , location: SyntaxTree::Location) -> void
This signature was generated using 3 samples from 1 application.
def initialize(beginning:, parts:, location:) @beginning = beginning @parts = parts @location = location end