Class: Sox::File
- Inherits:
-
Object
- Object
- Sox::File
- Defined in:
- lib/sox/file.rb
Overview
Represents input or output file with its options for the ‘sox` command.
Instance Attribute Summary collapse
-
#escaped ⇒ Object
True if path doesn’t need to be escaped.
-
#options ⇒ Object
readonly
File options which will be placed right before it.
-
#path ⇒ Object
readonly
Path to file or whatever.
Instance Method Summary collapse
-
#escaped? ⇒ Boolean
Does the path need to be escaped?.
-
#initialize(path, options = {}) ⇒ File
constructor
A new instance of File.
Constructor Details
#initialize(path, options = {}) ⇒ File
16 17 18 19 20 |
# File 'lib/sox/file.rb', line 16 def initialize(path, = {}) @path = path = @escaped = false end |
Instance Attribute Details
#escaped ⇒ Object
True if path doesn’t need to be escaped.
11 12 13 |
# File 'lib/sox/file.rb', line 11 def escaped @escaped end |
#options ⇒ Object (readonly)
File options which will be placed right before it.
8 9 10 |
# File 'lib/sox/file.rb', line 8 def end |
#path ⇒ Object (readonly)
Path to file or whatever.
5 6 7 |
# File 'lib/sox/file.rb', line 5 def path @path end |
Instance Method Details
#escaped? ⇒ Boolean
Does the path need to be escaped?
25 26 27 |
# File 'lib/sox/file.rb', line 25 def escaped? @escaped end |