Class: Regexp::Token
- Inherits:
 - 
      Struct
      
        
- Object
 - Struct
 - Regexp::Token
 
 
- Defined in:
 - lib/regexp_parser/token.rb
 
Instance Attribute Summary collapse
- 
  
    
      #next  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute next.
 - 
  
    
      #previous  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute previous.
 
Instance Method Summary collapse
Instance Attribute Details
#next ⇒ Object
Returns the value of attribute next.
      14 15 16  | 
    
      # File 'lib/regexp_parser/token.rb', line 14 def next @next end  | 
  
#previous ⇒ Object
Returns the value of attribute previous.
      14 15 16  | 
    
      # File 'lib/regexp_parser/token.rb', line 14 def previous @previous end  | 
  
Instance Method Details
#length ⇒ Object
      20 21 22  | 
    
      # File 'lib/regexp_parser/token.rb', line 20 def length te - ts end  | 
  
#offset ⇒ Object
      16 17 18  | 
    
      # File 'lib/regexp_parser/token.rb', line 16 def offset [ts, te] end  |