Method: HDB#data
- Defined in:
- lib/hdb/hdb.rb
#data(row, idOrFieldName) ⇒ Object
292 293 294 295 296 |
# File 'lib/hdb/hdb.rb', line 292 def data(row, idOrFieldName) return (idOrFieldName.class == Fixnum) ? @table[row][@table[row].keys[idOrFieldName]] : @table[row][idOrFieldName.to_s] end |