Skip to content

Commit

Permalink
Make from_path attribute private
Browse files Browse the repository at this point in the history
  • Loading branch information
aidewoode committed Aug 6, 2024
1 parent 935906e commit 0dc8bd0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/wahwah/tag.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ class Tag
sample_rate
bit_depth
file_size
from_path
]

attr_reader(*INSPECT_ATTRIBUTES)
Expand Down Expand Up @@ -60,6 +59,8 @@ def images

private

attr_accessor :from_path

def parse
raise WahWahNotImplementedError, "The parse method is not implemented"
end
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions test/wahwah/mp4_tag_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ def test_parse_alac_encoded
end
end

def test_parse_on_other_m4a
File.open "test/files/test-recording-123.m4a" do |file|
def test_parse_extended_header_atom
File.open "test/files/extended_header_atom.m4a" do |file|
tag = WahWah::Mp4Tag.new(file)
meta_atom = WahWah::Mp4::Atom.find(File.open(file.path), "moov", "udta", "meta")
image = tag.images.first
Expand Down

0 comments on commit 0dc8bd0

Please # to comment.