Class: Tone::Effect::Distortion
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(value: 0.4) ⇒ Distortion
constructor
A new instance of Distortion.
Constructor Details
#initialize(value: 0.4) ⇒ Distortion
Returns a new instance of Distortion.
52 53 54 55 |
# File 'lib/tone/effect.rb', line 52 def initialize(value: 0.4) @value = value super `new Tone.Distortion(value)` end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
50 51 52 |
# File 'lib/tone/effect.rb', line 50 def value @value end |
Instance Method Details
#==(other) ⇒ Object
57 58 59 |
# File 'lib/tone/effect.rb', line 57 def ==(other) super && value == other.value end |