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