Class: Multipri::PrimesTable::Row

Inherits:
Object
  • Object
show all
Defined in:
lib/multipri/primes_table.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#entriesObject (readonly)

Returns the value of attribute entries.



6
7
8
# File 'lib/multipri/primes_table.rb', line 6

def entries
  @entries
end

#titleObject (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