class Yadriggy::SingularClassDef
Singular class definition.
Public Class Methods
new(sexp)
click to toggle source
# File lib/yadriggy/ast.rb, line 1688 def initialize(sexp) @name = to_node(sexp[1]) # Keyword, VariableCall, ... add_child(@name) initialize_body(has_tag?(sexp[2], :bodystmt)) end
tag()
click to toggle source
# File lib/yadriggy/ast.rb, line 1686 def self.tag() :sclass end
Public Instance Methods
accept(evaluator)
click to toggle source
A method for Visitor pattern. @param [Eval] evaluator the visitor of Visitor pattern. @return [void]
# File lib/yadriggy/ast.rb, line 1700 def accept(evaluator) evaluator.singular_class_def(self) end
name()
click to toggle source
@return [Keyword|VariableCall|ASTnode] self, the object, …
Calls superclass method
# File lib/yadriggy/ast.rb, line 1695 def name() super end