Method: Inspec::Lockfile#initialize
- Defined in:
- lib/inspec/dependencies/lockfile.rb
#initialize(lockfile_content_hash) ⇒ Lockfile
Returns a new instance of Lockfile.
53 54 55 56 57 |
# File 'lib/inspec/dependencies/lockfile.rb', line 53 def initialize(lockfile_content_hash) version = lockfile_content_hash['lockfile_version'] @version = version.to_i parse_content_hash(lockfile_content_hash) end |