Class: PuppetX::Puppetlabs::Migration::CatalogDeltaModel::Location
- Inherits:
-
DeltaEntity
- Object
- DeltaEntity
- PuppetX::Puppetlabs::Migration::CatalogDeltaModel::Location
- Defined in:
- lib/puppet_x/puppetlabs/migration/catalog_delta_model.rb
Overview
Denotes a line in a file
Instance Attribute Summary collapse
- #file ⇒ Object readonly
- #line ⇒ Object readonly
Instance Method Summary collapse
-
#initialize(file, line) ⇒ Location
constructor
A new instance of Location.
Methods inherited from DeltaEntity
Methods included from ModelObject
#initialize_from_hash, #to_hash
Constructor Details
#initialize(file, line) ⇒ Location
Returns a new instance of Location.
63 64 65 66 |
# File 'lib/puppet_x/puppetlabs/migration/catalog_delta_model.rb', line 63 def initialize(file, line) @file = assert_type(String, file) @line = assert_type(Integer, line) end |
Instance Attribute Details
#file ⇒ Object (readonly)
54 55 56 |
# File 'lib/puppet_x/puppetlabs/migration/catalog_delta_model.rb', line 54 def file @file end |
#line ⇒ Object (readonly)
59 60 61 |
# File 'lib/puppet_x/puppetlabs/migration/catalog_delta_model.rb', line 59 def line @line end |