Class: Cyrel::AST::DeleteNode
- Inherits:
-
ClauseNode
- Object
- Node
- ClauseNode
- Cyrel::AST::DeleteNode
- Defined in:
- lib/cyrel/ast/delete_node.rb
Overview
AST node for DELETE and DETACH DELETE clauses Because sometimes things need to disappear, with or without their relationships
Instance Attribute Summary collapse
-
#detach ⇒ Object
readonly
Returns the value of attribute detach.
-
#variables ⇒ Object
readonly
Returns the value of attribute variables.
Instance Method Summary collapse
-
#initialize(variables, detach: false) ⇒ DeleteNode
constructor
A new instance of DeleteNode.
Methods inherited from Node
Constructor Details
#initialize(variables, detach: false) ⇒ DeleteNode
Returns a new instance of DeleteNode.
10 11 12 13 |
# File 'lib/cyrel/ast/delete_node.rb', line 10 def initialize(variables, detach: false) @variables = variables @detach = detach end |
Instance Attribute Details
#detach ⇒ Object (readonly)
Returns the value of attribute detach.
8 9 10 |
# File 'lib/cyrel/ast/delete_node.rb', line 8 def detach @detach end |
#variables ⇒ Object (readonly)
Returns the value of attribute variables.
8 9 10 |
# File 'lib/cyrel/ast/delete_node.rb', line 8 def variables @variables end |