Sha256: 54cf6275f0ee90c7880cea53341f178d49515f2f2ca9257a984739239a8029f4
Contents?: true
Size: 770 Bytes
Versions: 4
Compression:
Stored size: 770 Bytes
Contents
module GuitarProParser class Beat attr_accessor :dotted, :mix_table, :rest, :duration, :tuplet, :chord_diagram, :text, :effects, :strings, :transpose def initialize # Initialize attributes by default values @dotted = false @mix_table = nil @rest = nil @duration = :eighth @tuplet = nil @chord_diagram = nil @text = nil @effects = {} @strings = {} @transpose = nil end def has_effect?(effect) @effects.include?(effect) end def add_effect(effect) @effects[effect] = nil end end end
Version data entries
4 entries across 4 versions & 1 rubygems