Class: Refract::InterpolatedRegularExpressionNode
- Defined in:
- lib/refract/nodes/interpolated_regular_expression_node.rb
Instance Attribute Summary collapse
-
#extended ⇒ Object
Returns the value of attribute extended.
-
#ignore_case ⇒ Object
Returns the value of attribute ignore_case.
-
#multi_line ⇒ Object
Returns the value of attribute multi_line.
-
#once ⇒ Object
Returns the value of attribute once.
-
#parts ⇒ Object
Returns the value of attribute parts.
Instance Method Summary collapse
-
#initialize(prism_node: nil, parts:, ignore_case:, multi_line:, extended:, once:) ⇒ InterpolatedRegularExpressionNode
constructor
A new instance of InterpolatedRegularExpressionNode.
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
#extended ⇒ Object
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_case ⇒ Object
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_line ⇒ Object
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 |
#once ⇒ Object
Returns the value of attribute once.
15 16 17 |
# File 'lib/refract/nodes/interpolated_regular_expression_node.rb', line 15 def once @once end |
#parts ⇒ Object
Returns the value of attribute parts.
15 16 17 |
# File 'lib/refract/nodes/interpolated_regular_expression_node.rb', line 15 def parts @parts end |