Class: Musicality::Change
- Inherits:
-
Object
- Object
- Musicality::Change
- Includes:
- Packable
- Defined in:
- lib/musicality/notation/model/change.rb,
lib/musicality/notation/conversion/change_conversion.rb
Defined Under Namespace
Constant Summary
Constants included from Packable
Instance Attribute Summary collapse
-
#end_value ⇒ Object
readonly
Returns the value of attribute end_value.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(end_value) ⇒ Change
constructor
A new instance of Change.
Methods included from Packable
#class_str, included, #init_params, #pack, pack_val, recover_class, unpack_val
Constructor Details
#initialize(end_value) ⇒ Change
Returns a new instance of Change.
8 9 10 |
# File 'lib/musicality/notation/model/change.rb', line 8 def initialize end_value @end_value = end_value end |
Instance Attribute Details
#end_value ⇒ Object (readonly)
Returns the value of attribute end_value.
6 7 8 |
# File 'lib/musicality/notation/model/change.rb', line 6 def end_value @end_value end |
Instance Method Details
#==(other) ⇒ Object
12 13 14 15 |
# File 'lib/musicality/notation/model/change.rb', line 12 def ==(other) self.class == other.class && self.end_value == other.end_value end |