Module: CarrierWave::AudioWaveform

Defined in:
lib/carrierwave/audio_waveform.rb,
lib/carrierwave/audio_waveform/version.rb,
lib/carrierwave/audio_waveform/waveformer.rb

Defined Under Namespace

Modules: ClassMethods Classes: Waveformer

Constant Summary collapse

VERSION =
'1.0.0'

Instance Method Summary collapse

Instance Method Details

#waveform(options = {}) ⇒ Object



14
15
16
17
18
19
# File 'lib/carrierwave/audio_waveform.rb', line 14

def waveform options={}
  cache_stored_file! if !cached?

  image_filename = Waveformer.generate(current_path, options)
  File.rename image_filename, current_path
end