Class: YARD::Parser::Ruby::ParameterNode
Constant Summary
Constants inherited from AstNode
Instance Method Summary
- - (Object) block_param
- - (Object) optional_params
- - (Object) required_end_params
- - (Object) required_params
- - (Object) splat_param
Methods inherited from AstNode
#==, #call?, #children, #comments, #comments_range, #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
Constructor Details
This class inherits a constructor from YARD::Parser::Ruby::AstNode
Instance Method Details
- (Object) block_param
316 |
# File 'lib/yard/parser/ruby/ast_node.rb', line 316 def block_param; self[4] ? self[4][0] : nil end |
- (Object) optional_params
314 |
# File 'lib/yard/parser/ruby/ast_node.rb', line 314 def optional_params; self[1] end |
- (Object) required_end_params
313 |
# File 'lib/yard/parser/ruby/ast_node.rb', line 313 def required_end_params; self[3] end |
- (Object) required_params
312 |
# File 'lib/yard/parser/ruby/ast_node.rb', line 312 def required_params; self[0] end |
- (Object) splat_param
315 |
# File 'lib/yard/parser/ruby/ast_node.rb', line 315 def splat_param; self[2] ? self[2][0] : nil end |