class SyntaxTree::ZSuper
ZSuper
represents the bare super
keyword with no arguments.
super
Attributes
Public Class Methods
Source
# File lib/syntax_tree/node.rb, line 12366 def initialize(location:) @location = location @comments = [] end
Public Instance Methods
Source
# File lib/syntax_tree/node.rb, line 12396 def ===(other) other.is_a?(ZSuper) end
Source
# File lib/syntax_tree/node.rb, line 12371 def accept(visitor) visitor.visit_zsuper(self) end
Source
# File lib/syntax_tree/node.rb, line 12375 def child_nodes [] end
Also aliased as: deconstruct
Source
# File lib/syntax_tree/node.rb, line 12379 def copy(location: nil) node = ZSuper.new(location: location || self.location) node.comments.concat(comments.map(&:copy)) node end
Source
# File lib/syntax_tree/node.rb, line 12388 def deconstruct_keys(_keys) { location: location, comments: comments } end