Class: LibRubyParser::Nodes::Kwrestarg
- Inherits:
- 
      LibRubyParser::Node
      
        - Object
- LibRubyParser::Node
- LibRubyParser::Nodes::Kwrestarg
 
- Defined in:
- lib/lib-ruby-parser/nodes.rb
Overview
Represents a keyword rest argument (i.e. foo in def m(**foo); end)
Instance Attribute Summary collapse
- 
  
    
      #expression_l  ⇒ Loc 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Location of the full expression. 
- 
  
    
      #name  ⇒ String? 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Name of the keyword rest argument, String("foo")indef m(**foo); end.
- 
  
    
      #name_l  ⇒ Loc? 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Location of the argument name. 
- 
  
    
      #operator_l  ⇒ Loc 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Location of the **operator.
Instance Attribute Details
#expression_l ⇒ Loc (readonly)
Location of the full expression
def m(**foo); end
      ~~~~~
| 2424 2425 2426 | # File 'lib/lib-ruby-parser/nodes.rb', line 2424 def expression_l @expression_l end | 
#name ⇒ String? (readonly)
Name of the keyword rest argument, String("foo") in def m(**foo); end.
None if argument has no name (def m(**); end)
| 2395 2396 2397 | # File 'lib/lib-ruby-parser/nodes.rb', line 2395 def name @name end | 
#name_l ⇒ Loc? (readonly)
Location of the argument name
def m(**foo); end
        ~~~
None if argument has no name (def m(**); end)
| 2415 2416 2417 | # File 'lib/lib-ruby-parser/nodes.rb', line 2415 def name_l @name_l end | 
#operator_l ⇒ Loc (readonly)
Location of the ** operator
def m(**foo); end
      ~~
| 2404 2405 2406 | # File 'lib/lib-ruby-parser/nodes.rb', line 2404 def operator_l @operator_l end |