Class: Refract::XStringNode

Inherits:
Node
  • Object
show all
Defined in:
lib/refract/nodes/x_string_node.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#accept, #copy, #start_line, #type, type

Constructor Details

#initialize(prism_node: nil, unescaped:) ⇒ XStringNode

Returns a new instance of XStringNode.



5
6
7
8
9
# File 'lib/refract/nodes/x_string_node.rb', line 5

def initialize(prism_node: nil, unescaped:)
	@prism_node = prism_node => Prism::Node | nil
	@unescaped = unescaped
	freeze
end

Instance Attribute Details

#unescapedObject

Returns the value of attribute unescaped.



11
12
13
# File 'lib/refract/nodes/x_string_node.rb', line 11

def unescaped
  @unescaped
end