Class: Wacker
- Inherits:
-
Object
- Object
- Wacker
- Defined in:
- lib/bvwack/wacker.rb
Instance Method Summary collapse
-
#initialize(path_to_file) ⇒ Wacker
constructor
A new instance of Wacker.
- #wack ⇒ Object
Constructor Details
#initialize(path_to_file) ⇒ Wacker
Returns a new instance of Wacker.
2 3 4 |
# File 'lib/bvwack/wacker.rb', line 2 def initialize(path_to_file) @path_to_file = path_to_file end |
Instance Method Details
#wack ⇒ Object
6 7 8 9 10 11 |
# File 'lib/bvwack/wacker.rb', line 6 def wack if @path_to_file.class == String `ffmpeg -i "#{@path_to_file}" #{FFMPEG_OPTS} "#{@path_to_file.gsub(/mkv$|avi$/, "ipad.mp4")}"` #puts "I would have wacked" end end |