Class: Arcenciel::Surfaces::Knob::Context

Inherits:
Object
  • Object
show all
Defined in:
lib/arcenciel/surfaces.rb

Instance Method Summary collapse

Constructor Details

#initialize(knob) ⇒ Context

Returns a new instance of Context.



90
91
92
# File 'lib/arcenciel/surfaces.rb', line 90

def initialize(knob)
  @knob = knob
end

Instance Method Details

#nameObject

Returns the name of this logical knob (encoder).



95
96
97
# File 'lib/arcenciel/surfaces.rb', line 95

def name
  @knob.name
end

#valueObject

Returns the value of this knob.



100
101
102
# File 'lib/arcenciel/surfaces.rb', line 100

def value
  @knob.typed_value
end