Class: Pedalboard::Components::BaseComponent
- Inherits:
-
Object
- Object
- Pedalboard::Components::BaseComponent
- Defined in:
- lib/pedalboard/components/base_component.rb
Instance Attribute Summary collapse
-
#pedalboard ⇒ Object
readonly
Returns the value of attribute pedalboard.
-
#pin ⇒ Object
readonly
Returns the value of attribute pin.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ BaseComponent
constructor
A new instance of BaseComponent.
Constructor Details
#initialize(opts = {}) ⇒ BaseComponent
Returns a new instance of BaseComponent.
7 8 9 10 11 |
# File 'lib/pedalboard/components/base_component.rb', line 7 def initialize opts={} @pin = opts.fetch(:pin) {} @pedalboard = opts.fetch(:pedalboard) {} @dino_component = opts.fetch(:dino_component) {} end |
Instance Attribute Details
#pedalboard ⇒ Object (readonly)
Returns the value of attribute pedalboard.
5 6 7 |
# File 'lib/pedalboard/components/base_component.rb', line 5 def pedalboard @pedalboard end |
#pin ⇒ Object (readonly)
Returns the value of attribute pin.
5 6 7 |
# File 'lib/pedalboard/components/base_component.rb', line 5 def pin @pin end |