Class: AudioBookCreator::SpokenChapter
- Inherits:
-
Object
- Object
- AudioBookCreator::SpokenChapter
- Defined in:
- lib/audio_book_creator/spoken_chapter.rb
Instance Attribute Summary collapse
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
- #==(other) ⇒ Object (also: #eql?)
-
#initialize(title, filename) ⇒ SpokenChapter
constructor
A new instance of SpokenChapter.
Constructor Details
#initialize(title, filename) ⇒ SpokenChapter
Returns a new instance of SpokenChapter.
5 6 7 8 |
# File 'lib/audio_book_creator/spoken_chapter.rb', line 5 def initialize(title, filename) @title = title @filename = filename end |
Instance Attribute Details
#filename ⇒ Object
Returns the value of attribute filename.
3 4 5 |
# File 'lib/audio_book_creator/spoken_chapter.rb', line 3 def filename @filename end |
#title ⇒ Object
Returns the value of attribute title.
3 4 5 |
# File 'lib/audio_book_creator/spoken_chapter.rb', line 3 def title @title end |
Instance Method Details
#==(other) ⇒ Object Also known as: eql?
10 11 12 13 |
# File 'lib/audio_book_creator/spoken_chapter.rb', line 10 def ==(other) other.kind_of?(SpokenChapter) && other.title.eql?(title) && other.filename.eql?(filename) end |