Class: DuoSplitter::Models::Album
- Inherits:
-
Object
- Object
- DuoSplitter::Models::Album
- Defined in:
- lib/duo_splitter/models/album.rb
Instance Attribute Summary collapse
-
#sections ⇒ Object
readonly
Returns the value of attribute sections.
Instance Method Summary collapse
-
#initialize ⇒ Album
constructor
A new instance of Album.
- #sentences(intro: true) ⇒ Object
Constructor Details
#initialize ⇒ Album
Returns a new instance of Album.
8 9 10 |
# File 'lib/duo_splitter/models/album.rb', line 8 def initialize @sections = load_sections end |
Instance Attribute Details
#sections ⇒ Object (readonly)
Returns the value of attribute sections.
6 7 8 |
# File 'lib/duo_splitter/models/album.rb', line 6 def sections @sections end |
Instance Method Details
#sentences(intro: true) ⇒ Object
12 13 14 |
# File 'lib/duo_splitter/models/album.rb', line 12 def sentences(intro: true) sections.map {|section| section.sentences(intro: intro) }.flatten end |