Class: Syobocal::SubTitles::SubTitle
- Inherits:
-
Object
- Object
- Syobocal::SubTitles::SubTitle
- Defined in:
- lib/syobocal/sub_titles/sub_title.rb
Instance Attribute Summary collapse
-
#episode ⇒ Object
readonly
Returns the value of attribute episode.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(episode, title) ⇒ SubTitle
constructor
A new instance of SubTitle.
Constructor Details
#initialize(episode, title) ⇒ SubTitle
Returns a new instance of SubTitle.
6 7 8 |
# File 'lib/syobocal/sub_titles/sub_title.rb', line 6 def initialize(episode, title) @episode, @title = episode, title end |
Instance Attribute Details
#episode ⇒ Object (readonly)
Returns the value of attribute episode.
4 5 6 |
# File 'lib/syobocal/sub_titles/sub_title.rb', line 4 def episode @episode end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
4 5 6 |
# File 'lib/syobocal/sub_titles/sub_title.rb', line 4 def title @title end |
Instance Method Details
#==(other) ⇒ Object
10 11 12 |
# File 'lib/syobocal/sub_titles/sub_title.rb', line 10 def ==(other) other.instance_of?(self.class) && other.episode == episode && other.title == title end |