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.



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

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.



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

def i
  @i
end

#jObject (readonly)

Returns the value of attribute j.



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

def j
  @j
end