Method: GoogleDrive::Worksheet#input_value
- Defined in:
- lib/google_drive/worksheet.rb
#input_value(*args) ⇒ Object
Returns the value or the formula of the cell. Arguments must be either (row number, column number) or cell name. Top-left cell is [1, 1].
If user input “=A1+B1” to cell [1, 3]:
worksheet[1, 3] #=> "3" for example
worksheet.input_value(1, 3) #=> "=RC[-2]+RC[-1]"
223 224 225 226 227 |
# File 'lib/google_drive/worksheet.rb', line 223 def input_value(*args) (row, col) = parse_cell_args(args) reload_cells unless @cells @input_values[[row, col]] || '' end |