Class: Syobocal::Comment::Person
- Inherits:
-
Object
- Object
- Syobocal::Comment::Person
- Defined in:
- lib/syobocal/comment/person.rb
Constant Summary collapse
- PERSON_SEPARATOR =
"、"
- ENCODED_SEPARATOR =
"\t"
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#note ⇒ Object
readonly
Returns the value of attribute note.
Class Method Summary collapse
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(name, note) ⇒ Person
constructor
A new instance of Person.
Constructor Details
#initialize(name, note) ⇒ Person
Returns a new instance of Person.
9 10 11 |
# File 'lib/syobocal/comment/person.rb', line 9 def initialize(name, note) @name, @note = name, note end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/syobocal/comment/person.rb', line 7 def name @name end |
#note ⇒ Object (readonly)
Returns the value of attribute note.
7 8 9 |
# File 'lib/syobocal/comment/person.rb', line 7 def note @note end |
Class Method Details
Instance Method Details
#==(other) ⇒ Object
13 14 15 |
# File 'lib/syobocal/comment/person.rb', line 13 def ==(other) other.instance_of?(self.class) && other.name == name && other.note == note end |