Module: Chaussettes::CommonOptions
Overview
options that are common between input and output files
Instance Method Summary collapse
- #bits(bits) ⇒ Object
- #channels(channels) ⇒ Object
- #encoding(encoding) ⇒ Object
- #endian(option) ⇒ Object
- #rate(rate) ⇒ Object
- #reverse_bits ⇒ Object
- #reverse_nibbles ⇒ Object
- #type(type) ⇒ Object
Instance Method Details
#bits(bits) ⇒ Object
5 6 7 8 |
# File 'lib/chaussettes/common_options.rb', line 5 def bits(bits) @arguments << '--bits' << bits self end |
#channels(channels) ⇒ Object
10 11 12 13 |
# File 'lib/chaussettes/common_options.rb', line 10 def channels(channels) @arguments << '--channels' << channels self end |
#encoding(encoding) ⇒ Object
15 16 17 18 |
# File 'lib/chaussettes/common_options.rb', line 15 def encoding(encoding) @arguments << '--encoding' << encoding self end |
#endian(option) ⇒ Object
30 31 32 33 |
# File 'lib/chaussettes/common_options.rb', line 30 def endian(option) @arguments << '--endian' << option self end |
#rate(rate) ⇒ Object
20 21 22 23 |
# File 'lib/chaussettes/common_options.rb', line 20 def rate(rate) @arguments << '--rate' << rate self end |
#reverse_bits ⇒ Object
40 41 42 43 |
# File 'lib/chaussettes/common_options.rb', line 40 def reverse_bits @arguments << '--reverse-bits' self end |
#reverse_nibbles ⇒ Object
35 36 37 38 |
# File 'lib/chaussettes/common_options.rb', line 35 def reverse_nibbles @arguments << '--reverse-nibbles' self end |
#type(type) ⇒ Object
25 26 27 28 |
# File 'lib/chaussettes/common_options.rb', line 25 def type(type) @arguments << '--type' << type self end |