Skip to content
This repository was archived by the owner on Apr 27, 2020. It is now read-only.

Commit 234d4ec

Browse files
committed
Use 'private' as a separator between public and private methods
1 parent e514502 commit 234d4ec

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

Diff for: lib/spotify_to_mp3/query_resolver.rb

+2-3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ def resolve(query)
2121

2222
tracks
2323
end
24+
25+
private
2426

2527
def convert_spotify_track(track)
2628
description = "#{track.artist} - #{track.name}"
@@ -32,8 +34,5 @@ def convert_spotify_track(track)
3234
def resolve_plain_track(description)
3335
Track.new(description)
3436
end
35-
36-
private :convert_spotify_track, :resolve_plain_track
37-
3837
end
3938
end

Diff for: lib/spotify_to_mp3/spotify.rb

+2-3
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,12 @@ def album_uri?(uri)
3030
uri.start_with?('http://open.spotify.com/album/', 'spotify:album:')
3131
end
3232

33+
private
34+
3335
def parse_id(uri)
3436
id = uri.sub(/.*:/, '')
3537
id = id.sub(/.*\//, '') if uri.start_with?('http')
3638
id
3739
end
38-
39-
private :parse_id
40-
4140
end
4241
end

0 commit comments

Comments
 (0)