Method: OcflTools::OcflValidator#initialize
- Defined in:
- lib/ocfl_tools/ocfl_validator.rb
#initialize(ocfl_object_root) ⇒ OcflValidator
Returns a new instance of OcflValidator.
22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/ocfl_tools/ocfl_validator.rb', line 22 def initialize(ocfl_object_root) unless File.directory? ocfl_object_root raise "#{ocfl_object_root} is not a directory!" end @digest = nil @version_format = nil @ocfl_version = nil @ocfl_object_root = ocfl_object_root @my_results = OcflTools::OcflResults.new @inventory = nil # some checks create an inventory object; have a way to get at that. @verify = nil # some checks create a verify object; have a way to get at that. end |