Class: Sprig::Parser::Base
- Inherits:
 - 
      Object
      
        
- Object
 - Sprig::Parser::Base
 
 
- Defined in:
 - lib/sprig/parser/base.rb
 
Direct Known Subclasses
Instance Attribute Summary collapse
- 
  
    
      #data_io  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute data_io.
 
Instance Method Summary collapse
- 
  
    
      #initialize(data_io)  ⇒ Base 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of Base.
 - #parse ⇒ Object
 
Constructor Details
#initialize(data_io) ⇒ Base
Returns a new instance of Base.
      6 7 8  | 
    
      # File 'lib/sprig/parser/base.rb', line 6 def initialize(data_io) @data_io = data_io end  | 
  
Instance Attribute Details
#data_io ⇒ Object (readonly)
Returns the value of attribute data_io.
      4 5 6  | 
    
      # File 'lib/sprig/parser/base.rb', line 4 def data_io @data_io end  | 
  
Instance Method Details
#parse ⇒ Object
      10 11 12  | 
    
      # File 'lib/sprig/parser/base.rb', line 10 def parse raise NotImplementedError, 'Parsers must implement #parse' end  |