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.
57 58 59 |
# File 'lib/inspec/run_data/control.rb', line 57 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
53 54 55 |
# File 'lib/inspec/run_data/control.rb', line 53 def line @line end |
#ref ⇒ Object
Returns the value of attribute ref
53 54 55 |
# File 'lib/inspec/run_data/control.rb', line 53 def ref @ref end |