Class: LibRubyParser::Nodes::OrAsgn
- Inherits:
 - 
      LibRubyParser::Node
      
        
- Object
 - LibRubyParser::Node
 - LibRubyParser::Nodes::OrAsgn
 
 
- Defined in:
 - lib/lib-ruby-parser/nodes.rb
 
Overview
Represents lhs ||= rhs assignment
Instance Attribute Summary collapse
- 
  
    
      #expression_l  ⇒ Loc 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Location of the full expression.
 - 
  
    
      #operator_l  ⇒ Loc 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Location of the
||=operator. - 
  
    
      #recv  ⇒ Node 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Left hand statement.
 - 
  
    
      #value  ⇒ Node 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Right hand statement.
 
Instance Attribute Details
#expression_l ⇒ Loc (readonly)
Location of the full expression
foo ||= bar
~~~~~~~~~~~
  
      3188 3189 3190  | 
    
      # File 'lib/lib-ruby-parser/nodes.rb', line 3188 def expression_l @expression_l end  | 
  
#operator_l ⇒ Loc (readonly)
Location of the ||= operator
foo ||= bar
    ~~~
  
      3179 3180 3181  | 
    
      # File 'lib/lib-ruby-parser/nodes.rb', line 3179 def operator_l @operator_l end  | 
  
#recv ⇒ Node (readonly)
Left hand statement
      3166 3167 3168  | 
    
      # File 'lib/lib-ruby-parser/nodes.rb', line 3166 def recv @recv end  | 
  
#value ⇒ Node (readonly)
Right hand statement
      3170 3171 3172  | 
    
      # File 'lib/lib-ruby-parser/nodes.rb', line 3170 def value @value end  |