Class: Gly::Score
- Inherits:
-
Object
- Object
- Gly::Score
- Defined in:
- lib/gly/score.rb
Overview
result of a gly score parsing
Instance Attribute Summary collapse
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#lyrics ⇒ Object
readonly
Returns the value of attribute lyrics.
-
#music ⇒ Object
readonly
Returns the value of attribute music.
Instance Method Summary collapse
- #empty? ⇒ Boolean
-
#initialize ⇒ Score
constructor
A new instance of Score.
Constructor Details
Instance Attribute Details
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
10 11 12 |
# File 'lib/gly/score.rb', line 10 def headers @headers end |
#lyrics ⇒ Object (readonly)
Returns the value of attribute lyrics.
10 11 12 |
# File 'lib/gly/score.rb', line 10 def lyrics @lyrics end |
#music ⇒ Object (readonly)
Returns the value of attribute music.
10 11 12 |
# File 'lib/gly/score.rb', line 10 def music @music end |
Instance Method Details
#empty? ⇒ Boolean
12 13 14 |
# File 'lib/gly/score.rb', line 12 def empty? @headers.empty? && @lyrics.empty? && @music.empty? end |