Exception: Prism::Merge::FreezeNode::InvalidStructureError
- Inherits:
-
StandardError
- Object
- StandardError
- Prism::Merge::FreezeNode::InvalidStructureError
- Defined in:
- lib/prism/merge/freeze_node.rb
Overview
Error raised when a freeze block has invalid structure
Instance Attribute Summary collapse
-
#end_line ⇒ Object
readonly
Returns the value of attribute end_line.
-
#start_line ⇒ Object
readonly
Returns the value of attribute start_line.
-
#unclosed_nodes ⇒ Object
readonly
Returns the value of attribute unclosed_nodes.
Instance Method Summary collapse
-
#initialize(message, start_line: nil, end_line: nil, unclosed_nodes: []) ⇒ InvalidStructureError
constructor
A new instance of InvalidStructureError.
Constructor Details
#initialize(message, start_line: nil, end_line: nil, unclosed_nodes: []) ⇒ InvalidStructureError
34 35 36 37 38 39 |
# File 'lib/prism/merge/freeze_node.rb', line 34 def initialize(, start_line: nil, end_line: nil, unclosed_nodes: []) super() @start_line = start_line @end_line = end_line @unclosed_nodes = unclosed_nodes end |
Instance Attribute Details
#end_line ⇒ Object (readonly)
Returns the value of attribute end_line.
32 33 34 |
# File 'lib/prism/merge/freeze_node.rb', line 32 def end_line @end_line end |
#start_line ⇒ Object (readonly)
Returns the value of attribute start_line.
32 33 34 |
# File 'lib/prism/merge/freeze_node.rb', line 32 def start_line @start_line end |
#unclosed_nodes ⇒ Object (readonly)
Returns the value of attribute unclosed_nodes.
32 33 34 |
# File 'lib/prism/merge/freeze_node.rb', line 32 def unclosed_nodes @unclosed_nodes end |