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]"
115 116 117 118 119 |
# File 'lib/google_drive/worksheet.rb', line 115 def input_value(*args) (row, col) = parse_cell_args(args) reload() if !@cells return @input_values[[row, col]] || "" end |