Class: Inspec::RunData::Control::SourceLocation
- Inherits:
- 
      Struct
      
        - Object
- Struct
- Inspec::RunData::Control::SourceLocation
 
- Includes:
- HashLikeStruct
- Defined in:
- lib/inspec/run_data/control.rb
Instance Attribute Summary collapse
- 
  
    
      #line  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute line. 
- 
  
    
      #ref  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute ref. 
Instance Method Summary collapse
- 
  
    
      #initialize(raw_sl_data)  ⇒ SourceLocation 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of SourceLocation. 
Methods included from HashLikeStruct
Constructor Details
#initialize(raw_sl_data) ⇒ SourceLocation
Returns a new instance of SourceLocation.
| 51 52 53 | # File 'lib/inspec/run_data/control.rb', line 51 def initialize(raw_sl_data) i{line ref}.each { |f| self[f] = raw_sl_data[f] } end | 
Instance Attribute Details
#line ⇒ Object
Returns the value of attribute line
| 47 48 49 | # File 'lib/inspec/run_data/control.rb', line 47 def line @line end | 
#ref ⇒ Object
Returns the value of attribute ref
| 47 48 49 | # File 'lib/inspec/run_data/control.rb', line 47 def ref @ref end |