Class: Voicemeeter::Option::Base
- Inherits:
-
Object
- Object
- Voicemeeter::Option::Base
- Extended by:
- MetaFunctions
- Includes:
- IRemote
- Defined in:
- lib/voicemeeter/option.rb
Instance Attribute Summary collapse
-
#buffer ⇒ Object
readonly
Returns the value of attribute buffer.
-
#delay ⇒ Object
readonly
Returns the value of attribute delay.
-
#mode ⇒ Object
readonly
Returns the value of attribute mode.
Instance Method Summary collapse
- #identifier ⇒ Object
-
#initialize(remote) ⇒ Base
constructor
A new instance of Base.
Methods included from IRemote
Methods included from Logging
Constructor Details
#initialize(remote) ⇒ Base
Returns a new instance of Base.
11 12 13 14 15 16 |
# File 'lib/voicemeeter/option.rb', line 11 def initialize(remote) super @delay = (0...remote.kind.phys_out).map { OptionDelay.new(remote, _1) } @buffer = OptionBuffer.new(remote) @mode = OptionMode.new(remote) end |
Instance Attribute Details
#buffer ⇒ Object (readonly)
Returns the value of attribute buffer.
7 8 9 |
# File 'lib/voicemeeter/option.rb', line 7 def buffer @buffer end |
#delay ⇒ Object (readonly)
Returns the value of attribute delay.
7 8 9 |
# File 'lib/voicemeeter/option.rb', line 7 def delay @delay end |
#mode ⇒ Object (readonly)
Returns the value of attribute mode.
7 8 9 |
# File 'lib/voicemeeter/option.rb', line 7 def mode @mode end |
Instance Method Details
#identifier ⇒ Object
18 19 20 |
# File 'lib/voicemeeter/option.rb', line 18 def identifier :option end |