Class: Refract::InterpolatedRegularExpressionNode

Inherits:
Node
  • Object
show all
Defined in:
lib/refract/nodes/interpolated_regular_expression_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, parts:, ignore_case:, multi_line:, extended:, once:) ⇒ InterpolatedRegularExpressionNode

Returns a new instance of InterpolatedRegularExpressionNode.



5
6
7
8
9
10
11
12
13
# File 'lib/refract/nodes/interpolated_regular_expression_node.rb', line 5

def initialize(prism_node: nil, parts:, ignore_case:, multi_line:, extended:, once:)
	@prism_node = prism_node => Prism::Node | nil
	@parts = parts
	@ignore_case = ignore_case
	@multi_line = multi_line
	@extended = extended
	@once = once
	freeze
end

Instance Attribute Details

#extendedObject

Returns the value of attribute extended.



15
16
17
# File 'lib/refract/nodes/interpolated_regular_expression_node.rb', line 15

def extended
  @extended
end

#ignore_caseObject

Returns the value of attribute ignore_case.



15
16
17
# File 'lib/refract/nodes/interpolated_regular_expression_node.rb', line 15

def ignore_case
  @ignore_case
end

#multi_lineObject

Returns the value of attribute multi_line.



15
16
17
# File 'lib/refract/nodes/interpolated_regular_expression_node.rb', line 15

def multi_line
  @multi_line
end

#onceObject

Returns the value of attribute once.



15
16
17
# File 'lib/refract/nodes/interpolated_regular_expression_node.rb', line 15

def once
  @once
end

#partsObject

Returns the value of attribute parts.



15
16
17
# File 'lib/refract/nodes/interpolated_regular_expression_node.rb', line 15

def parts
  @parts
end