Class: Webmidi::Configuration
- Inherits:
-
Object
- Object
- Webmidi::Configuration
- Defined in:
- lib/webmidi/configuration.rb
Instance Attribute Summary collapse
-
#default_channel ⇒ Object
Returns the value of attribute default_channel.
-
#default_group ⇒ Object
Returns the value of attribute default_group.
-
#default_velocity ⇒ Object
Returns the value of attribute default_velocity.
-
#fallback_transport ⇒ Object
Returns the value of attribute fallback_transport.
-
#log_level ⇒ Object
Returns the value of attribute log_level.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#sysex ⇒ Object
Returns the value of attribute sysex.
-
#timestamp_source ⇒ Object
Returns the value of attribute timestamp_source.
-
#transport ⇒ Object
Returns the value of attribute transport.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #reset! ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
12 13 14 |
# File 'lib/webmidi/configuration.rb', line 12 def initialize reset! end |
Instance Attribute Details
#default_channel ⇒ Object
Returns the value of attribute default_channel.
5 6 7 |
# File 'lib/webmidi/configuration.rb', line 5 def default_channel @default_channel end |
#default_group ⇒ Object
Returns the value of attribute default_group.
5 6 7 |
# File 'lib/webmidi/configuration.rb', line 5 def default_group @default_group end |
#default_velocity ⇒ Object
Returns the value of attribute default_velocity.
5 6 7 |
# File 'lib/webmidi/configuration.rb', line 5 def default_velocity @default_velocity end |
#fallback_transport ⇒ Object
Returns the value of attribute fallback_transport.
5 6 7 |
# File 'lib/webmidi/configuration.rb', line 5 def fallback_transport @fallback_transport end |
#log_level ⇒ Object
Returns the value of attribute log_level.
5 6 7 |
# File 'lib/webmidi/configuration.rb', line 5 def log_level @log_level end |
#logger ⇒ Object
Returns the value of attribute logger.
5 6 7 |
# File 'lib/webmidi/configuration.rb', line 5 def logger @logger end |
#sysex ⇒ Object
Returns the value of attribute sysex.
5 6 7 |
# File 'lib/webmidi/configuration.rb', line 5 def sysex @sysex end |
#timestamp_source ⇒ Object
Returns the value of attribute timestamp_source.
5 6 7 |
# File 'lib/webmidi/configuration.rb', line 5 def @timestamp_source end |
#transport ⇒ Object
Returns the value of attribute transport.
5 6 7 |
# File 'lib/webmidi/configuration.rb', line 5 def transport @transport end |
Instance Method Details
#reset! ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/webmidi/configuration.rb', line 16 def reset! @transport = :auto @fallback_transport = :virtual @default_channel = 0 @default_velocity = 100 @default_group = 0 @sysex = false @logger = nil @log_level = :info @timestamp_source = :monotonic self end |