Method: TagFile::Document#initialize

Defined in:
lib/tagfile/document.rb

#initialize(path) ⇒ Document

Returns a new instance of Document.



13
14
15
16
17
18
19
20
# File 'lib/tagfile/document.rb', line 13

def initialize(path)
  @path = verify_presence_of(path)
  @filename = File.basename(@path)
  @format = verify_format_of(@path)
  @taglib = TagLib::File.new(@path)
  @tags = make_tag_attributes
  @errors = run_all_verifications
end