module AudioDicer
Constants
- VERSION
Public Class Methods
execute(script, filename = nil)
click to toggle source
# File lib/audio_dicer.rb, line 18 def self.execute(script, filename = nil) ctx = Context.new ctx.instance_eval script Runner.new(ctx).run end
expand_relative_file(file)
click to toggle source
# File lib/audio_dicer.rb, line 8 def self.expand_relative_file(file) File.expand_path(file, Dir.pwd) end
load(filename)
click to toggle source
# File lib/audio_dicer.rb, line 12 def self.load(filename) File.open(expand_relative_file(filename)) do |file| execute file.read, filename end end