Class: YARD::Parser::Ruby::ClassNode

Inherits:
KeywordNode show all
Defined in:
lib/yard/parser/ruby/ast_node.rb

Managing node state collapse

Constructor Details

This class inherits a constructor from YARD::Parser::Ruby::AstNode

Instance Method Details

#blockObject



507
# File 'lib/yard/parser/ruby/ast_node.rb', line 507

def block; last end

#class_nameObject



505
# File 'lib/yard/parser/ruby/ast_node.rb', line 505

def class_name; first end

#superclassObject



506
# File 'lib/yard/parser/ruby/ast_node.rb', line 506

def superclass; type == :sclass ? nil : self[1] end