Class: Spout::Models::Empty

Inherits:
Object
  • Object
show all
Defined in:
lib/spout/models/empty.rb

Overview

Used for empty values, these values exist in that the column is defined in the CSV, however the cell is blank. This is to differentiate this value from nil, where the subject row exists, but the column for the is not specified.

Instance Method Summary collapse

Instance Method Details

#to_fObject



10
11
12
# File 'lib/spout/models/empty.rb', line 10

def to_f
  self
end

#to_sObject



14
15
16
# File 'lib/spout/models/empty.rb', line 14

def to_s
  "Empty"
end