Class: Musicality::Mark

Inherits:
Object
  • Object
show all
Includes:
Packable
Defined in:
lib/musicality/notation/model/mark.rb

Direct Known Subclasses

Slur

Defined Under Namespace

Classes: Slur

Constant Summary

Constants included from Packable

Packable::PACKED_CLASS_KEY

Instance Method Summary collapse

Methods included from Packable

#class_str, included, #init_params, #pack, pack_val, recover_class, unpack_val

Instance Method Details

#==(other) ⇒ Object



14
15
16
# File 'lib/musicality/notation/model/mark.rb', line 14

def ==(other)
  self.class == other.class
end

#cloneObject



6
7
8
# File 'lib/musicality/notation/model/mark.rb', line 6

def clone
  self.class.new
end

#to_sObject



10
11
12
# File 'lib/musicality/notation/model/mark.rb', line 10

def to_s
  MARK_SYMBOLS[self.class]
end