Class: Gly::Score

Inherits:
Object
  • Object
show all
Defined in:
lib/gly/score.rb

Overview

result of a gly score parsing

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeScore

Returns a new instance of Score.



4
5
6
7
8
# File 'lib/gly/score.rb', line 4

def initialize
  @headers = Headers.new
  @lyrics = Lyrics.new
  @music = []
end

Instance Attribute Details

#headersObject (readonly)

Returns the value of attribute headers.



10
11
12
# File 'lib/gly/score.rb', line 10

def headers
  @headers
end

#lyricsObject (readonly)

Returns the value of attribute lyrics.



10
11
12
# File 'lib/gly/score.rb', line 10

def lyrics
  @lyrics
end

#musicObject (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

Returns:

  • (Boolean)


12
13
14
# File 'lib/gly/score.rb', line 12

def empty?
  @headers.empty? && @lyrics.empty? && @music.empty?
end