class Sox::File
Represents input or output file with its options for the ‘sox` command.
Attributes
escaped[RW]
True if path doesn’t need to be escaped.
options[R]
File
options which will be placed right before it.
path[R]
Path to file or whatever.
Public Class Methods
new(path, options = {})
click to toggle source
@param path [String] path to file @param options [Hash{Symbol => Symbol,String,Numeric}] file options
# File lib/sox/file.rb, line 16 def initialize(path, options = {}) @path = path @options = options @escaped = false end
Public Instance Methods
escaped?()
click to toggle source
Does the path need to be escaped?
@return [Boolean]
# File lib/sox/file.rb, line 25 def escaped? @escaped end