Module: Musa::Neumalang::Neumalang::Parser::AbsGradeAttribute

Defined in:
lib/musa-dsl/neumalang/neumalang.rb

Instance Method Summary collapse

Instance Method Details

#valueObject



200
201
202
203
204
205
206
207
208
209
# File 'lib/musa-dsl/neumalang/neumalang.rb', line 200

def value
  value = {}

  value[:abs_grade] = capture(:grade).value if capture(:grade)
  value[:abs_grade] ||= capture(:interval).value.to_sym if capture(:interval)

  value[:abs_sharps] = capture(:accidentals).value if capture(:accidentals)

  value
end