class IcAgent::Ast::Nodes::StringLiteral
Represents a string literal node in the abstract syntax tree.
Public Instance Methods
to_array()
click to toggle source
Converts the string literal node to an array representation. In this case, the array contains the text value of the string literal.
# File lib/ic_agent/ast/nodes/string_literal.rb, line 10 def to_array self.text_value end
to_s()
click to toggle source
Converts the string literal node to a string representation. In this case, it returns the text value of the string literal.
# File lib/ic_agent/ast/nodes/string_literal.rb, line 16 def to_s self.text_value end