Class: YARD::Parser::Ruby::ReferenceNode
- Inherits:
-
AstNode
show all
- Defined in:
- lib/yard/parser/ruby/ast_node.rb
Constant Summary
Instance Attribute Summary
Attributes inherited from AstNode
#docstring, #docstring_range, #file, #full_source, #group, #line_range, #parent, #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, #token?, #traverse
Methods inherited from Array
#place
Instance Method Details
- (Object) namespace
321
322
323
|
# File 'lib/yard/parser/ruby/ast_node.rb', line 321
def namespace
Array.new flatten[0...-1]
end
|
- (Object) path
317
318
319
|
# File 'lib/yard/parser/ruby/ast_node.rb', line 317
def path
Array.new flatten
end
|
- (Boolean) ref?
315
|
# File 'lib/yard/parser/ruby/ast_node.rb', line 315
def ref?; true end
|
- (Object) source
325
326
327
|
# File 'lib/yard/parser/ruby/ast_node.rb', line 325
def source
super.split(/\s+/).first
end
|