Class: YARD::Parser::Ruby::ParameterNode
Constant Summary
Constants inherited
from AstNode
AstNode::KEYWORDS
Instance Attribute Summary
Attributes inherited from AstNode
#docstring, #docstring_range, #file, #full_source, #group, #line_range, #parent, #source, #source_range, #type
Methods inherited from AstNode
#call?, #children, #condition?, #first_line, #has_line?, #initialize, #inspect, #jump, #kw?, #line, #literal?, node_class_for, #pretty_print, #ref?, #show, #to_s, #token?, #traverse
Methods inherited from Array
#place
Instance Method Details
#block_param ⇒ Object
335
|
# File 'lib/yard/parser/ruby/ast_node.rb', line 335
def block_param; self[4] ? self[4][0] : nil end
|
#optional_params ⇒ Object
333
|
# File 'lib/yard/parser/ruby/ast_node.rb', line 333
def optional_params; self[1] end
|
#required_end_params ⇒ Object
332
|
# File 'lib/yard/parser/ruby/ast_node.rb', line 332
def required_end_params; self[3] end
|
#required_params ⇒ Object
331
|
# File 'lib/yard/parser/ruby/ast_node.rb', line 331
def required_params; self[0] end
|
#splat_param ⇒ Object
334
|
# File 'lib/yard/parser/ruby/ast_node.rb', line 334
def splat_param; self[2] ? self[2][0] : nil end
|