Class: YARD::Parser::Ruby::ModuleNode
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
|
|
Instance Chain:
|
|
Inherits: |
YARD::Parser::Ruby::KeywordNode
|
Defined in: | lib/yard/parser/ruby/ast_node.rb |
Constant Summary
Managing node state
Class Method Summary
AstNode
- Inherited
.new | Creates a new AST node. |
.node_class_for | Finds the node subclass that should be instantiated for a specific node type. |
Instance Attribute Summary
KeywordNode
- Inherited
AstNode
- Inherited
#block?, #call?, | |
#comments | Alias for AstNode#docstring. |
#comments_hash_flag | Alias for AstNode#docstring_hash_flag. |
#comments_range | Alias for AstNode#docstring_range. |
#condition?, #def?, #docstring, #docstring_hash_flag, #docstring_range, #file, #file=, #full_source, #full_source=, #group, #has_line?, #kw?, #line_range, #line_range=, #literal?, #loop?, #parent, #ref?, #source, #source=, #source_range, #source_range=, | |
#to_s | Alias for AstNode#source. |
#token?, #type |
Instance Method Summary
AstNode
- Inherited
#==, #children, #first_line, #inspect, | |
#jump | Searches through the node and all descendants and returns the first node with a type matching any of |
#line, #pretty_print, #show, | |
#traverse | Traverses the object and yields each node (including descendants) in order. |
#unfreeze | Resets node state in tree. |
#reset_line_info | Resets line information. |
::Array
- Inherited
#place | Places values before or after another object (by value) in an array. |
Constructor Details
This class inherits a constructor from YARD::Parser::Ruby::AstNode
Instance Method Details
#block
[ GitHub ]# File 'lib/yard/parser/ruby/ast_node.rb', line 538
def block; last end
#module_name
[ GitHub ]# File 'lib/yard/parser/ruby/ast_node.rb', line 537
def module_name; first end