Class: Multipri::PrimesTable::Row
- Inherits:
-
Object
- Object
- Multipri::PrimesTable::Row
- Defined in:
- lib/multipri/primes_table.rb
Instance Attribute Summary collapse
-
#entries ⇒ Object
readonly
Returns the value of attribute entries.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(title, entries) ⇒ Row
constructor
A new instance of Row.
Constructor Details
#initialize(title, entries) ⇒ Row
Returns a new instance of Row.
8 9 10 11 |
# File 'lib/multipri/primes_table.rb', line 8 def initialize(title, entries) @title = title @entries = entries end |
Instance Attribute Details
#entries ⇒ Object (readonly)
Returns the value of attribute entries.
6 7 8 |
# File 'lib/multipri/primes_table.rb', line 6 def entries @entries end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
6 7 8 |
# File 'lib/multipri/primes_table.rb', line 6 def title @title end |
Instance Method Details
#==(other) ⇒ Object
13 14 15 16 |
# File 'lib/multipri/primes_table.rb', line 13 def ==(other) other.class == self.class && other.state == self.state @title == other.title end |