Class: YARD::Parser::Ruby::ReferenceNode

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

Constant Summary

Constants inherited from AstNode

KEYWORDS

Instance Attribute Summary

Attributes inherited from AstNode

docstring, docstring_hash_flag, docstring_range, file, full_source, group, line_range, parent, source, source_range, type

Instance Method Summary (collapse)

Methods inherited from AstNode

#call?, #children, #condition?, #first_line, #has_line?, #initialize, #inspect, #jump, #kw?, #line, #literal?, node_class_for, #pretty_print, #show, #to_s, #token?, #traverse

Methods inherited from Array

#place

Constructor Details

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

Instance Method Details

- (Object) namespace



330
331
332
# File 'lib/yard/parser/ruby/ast_node.rb', line 330

def namespace
  Array.new flatten[0...-1]
end

- (Object) path



326
327
328
# File 'lib/yard/parser/ruby/ast_node.rb', line 326

def path
  Array.new flatten
end

- (Boolean) ref?

Returns:

  • (Boolean)


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

def ref?; true end