Exception: TTY::Table::TupleMissing
- Inherits:
-
IndexError
- Object
- IndexError
- TTY::Table::TupleMissing
- Defined in:
- lib/tty/table/error.rb
Overview
Raised when reading non-existent element from a table
Instance Attribute Summary collapse
-
#i ⇒ Object
readonly
Returns the value of attribute i.
-
#j ⇒ Object
readonly
Returns the value of attribute j.
Instance Method Summary collapse
-
#initialize(i, j) ⇒ TupleMissing
constructor
A new instance of TupleMissing.
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
#i ⇒ Object (readonly)
Returns the value of attribute i.
11 12 13 |
# File 'lib/tty/table/error.rb', line 11 def i @i end |
#j ⇒ Object (readonly)
Returns the value of attribute j.
11 12 13 |
# File 'lib/tty/table/error.rb', line 11 def j @j end |