Module: ADSP::Test::Option
- Defined in:
- lib/adsp/test/option.rb
Overview
ADSP::Test::Option module.
Constant Summary collapse
- BUFFER_LENGTHS =
“0” means default buffer length.
[ 0, 2 ] .freeze
- BOOLS =
[ true, false ] .freeze
Class Method Summary collapse
- .get_compatible_decompressor_options(compressor_options, buffer_length_name_mapping) {|decompressor_options| ... } ⇒ Object
- .get_compressor_options_generator(buffer_length_names) ⇒ Object
- .get_invalid_compressor_options(buffer_length_names, &block) ⇒ Object
- .get_invalid_decompressor_options(buffer_length_names, &block) ⇒ Object
Class Method Details
.get_compatible_decompressor_options(compressor_options, buffer_length_name_mapping) {|decompressor_options| ... } ⇒ Object
56 57 58 59 60 61 62 63 64 |
# File 'lib/adsp/test/option.rb', line 56 def self.(, buffer_length_name_mapping, &_block) = {} buffer_length_name_mapping.each do |compressor_name, decompressor_name| [decompressor_name] = [compressor_name] end yield end |
.get_compressor_options_generator(buffer_length_names) ⇒ Object
52 53 54 |
# File 'lib/adsp/test/option.rb', line 52 def self.(buffer_length_names) get_buffer_length_option_generator buffer_length_names end |
.get_invalid_compressor_options(buffer_length_names, &block) ⇒ Object
23 24 25 |
# File 'lib/adsp/test/option.rb', line 23 def self.(buffer_length_names, &block) buffer_length_names, &block end |
.get_invalid_decompressor_options(buffer_length_names, &block) ⇒ Object
27 28 29 |
# File 'lib/adsp/test/option.rb', line 27 def self.(buffer_length_names, &block) buffer_length_names, &block end |