Sha256: 3c79028381efb63699a2c97fe4a9933a350bfea4e2b4d5fb70ba59f2c71575f4

Contents?: true

Size: 426 Bytes

Versions: 13

Compression:

Stored size: 426 Bytes

Contents

# frozen_string_literal: true

module Spout
  module Models
    # 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.
    class Empty
      def to_f
        self
      end

      def to_s
        "Empty"
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
spout-1.0.0 lib/spout/models/empty.rb
spout-1.0.0.beta3 lib/spout/models/empty.rb
spout-1.0.0.beta2 lib/spout/models/empty.rb
spout-1.0.0.beta1 lib/spout/models/empty.rb
spout-0.14.1 lib/spout/models/empty.rb
spout-0.14.0 lib/spout/models/empty.rb
spout-0.14.0.rc lib/spout/models/empty.rb
spout-0.14.0.beta3 lib/spout/models/empty.rb
spout-0.14.0.beta2 lib/spout/models/empty.rb
spout-0.14.0.beta1 lib/spout/models/empty.rb
spout-0.13.0 lib/spout/models/empty.rb
spout-0.13.0.beta2 lib/spout/models/empty.rb
spout-0.13.0.beta1 lib/spout/models/empty.rb