class PG::Result
Public Instance Methods
[](r, c)
click to toggle source
Takes a row and column and return associated field. r
is the row ordinal. c
can be either a string (column name) or an integer (column ordinal).
# File src/lib/nixadm/util.rb, line 34 def [](r, c) idx = c if c.class == String idx = self.fnumber(c) end return self.getvalue(r, idx) end