Module: BandCamp

Defined in:
lib/band_camp.rb,
lib/band_camp/page.rb,
lib/band_camp/song.rb,
lib/band_camp/version.rb,
lib/band_camp/downloader.rb,
lib/band_camp/cli/options.rb

Defined Under Namespace

Modules: Cli Classes: Downloader, Page, Song

Constant Summary collapse

VERSION =

We’re doing this because bundler did it this way

"0.0.6"

Class Method Summary collapse

Class Method Details

.file_safe_string(string) ⇒ Object



8
9
10
# File 'lib/band_camp.rb', line 8

def self.file_safe_string(string)
  string.gsub("&", " and ").tr("^a-zA-Z0-9-", "_").gsub(/_+/, "_")
end