class MrsWatson::IO
Attributes
io[RW]
Public Class Methods
new()
click to toggle source
# File lib/mrswatson/io.rb, line 4 def initialize @io = [] end
Public Instance Methods
set_input(input)
click to toggle source
# File lib/mrswatson/io.rb, line 7 def set_input(input) if input[-3..-1] == "mid" @io << "-m #{input}" elsif input[-3..-1] == "wav" @io << "-i #{input}" else raise "Invalid Input Dude! - must be .wav or .mid" end end
set_output(output)
click to toggle source
# File lib/mrswatson/io.rb, line 18 def set_output(output) @io << "-o #{output}" end