Class: PuppetX::Puppetlabs::Migration::CatalogDeltaModel::Location

Inherits:
DeltaEntity
  • Object
show all
Defined in:
lib/puppet_x/puppetlabs/migration/catalog_delta_model.rb

Overview

Denotes a line in a file

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DeltaEntity

from_hash

Methods included from ModelObject

#initialize_from_hash, #to_hash

Constructor Details

#initialize(file, line) ⇒ Location

Returns a new instance of Location.

Parameters:

  • file (String)

    the file name

  • line (Integer)

    the line in the file



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

#fileObject (readonly)



54
55
56
# File 'lib/puppet_x/puppetlabs/migration/catalog_delta_model.rb', line 54

def file
  @file
end

#lineObject (readonly)



59
60
61
# File 'lib/puppet_x/puppetlabs/migration/catalog_delta_model.rb', line 59

def line
  @line
end