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.
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
#i ⇒ Object (readonly)
Returns the value of attribute i.
10 11 12 |
# File 'lib/tty/table/error.rb', line 10 def i @i end |
#j ⇒ Object (readonly)
Returns the value of attribute j.
10 11 12 |
# File 'lib/tty/table/error.rb', line 10 def j @j end |