Exception: TTY::Table::TupleMissing

Inherits:
IndexError
  • Object
show all
Defined in:
lib/tty/table/error.rb

Overview

Raised when reading non-existent element from a table

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(i, j) ⇒ TupleMissing

Returns a new instance of TupleMissing.



13
14
15
16
# File 'lib/tty/table/error.rb', line 13

def initialize(i, j)
  @i, @j = i, j
  super("element at(#{i},#{j}) not found")
end

Instance Attribute Details

#iObject (readonly)

Returns the value of attribute i.



11
12
13
# File 'lib/tty/table/error.rb', line 11

def i
  @i
end

#jObject (readonly)

Returns the value of attribute j.



11
12
13
# File 'lib/tty/table/error.rb', line 11

def j
  @j
end