Module: Chaussettes::CommonOptions

Included in:
Input, Output
Defined in:
lib/chaussettes/common_options.rb

Overview

options that are common between input and output files

Instance Method Summary collapse

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_bitsObject



40
41
42
43
# File 'lib/chaussettes/common_options.rb', line 40

def reverse_bits
  @arguments << '--reverse-bits'
  self
end

#reverse_nibblesObject



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