Sha256: c491219ce63e287ab9e46a1b3cd219841736d0689064a47585af775b25255f81

Contents?: true

Size: 215 Bytes

Versions: 5

Compression:

Stored size: 215 Bytes

Contents

# frozen_string_literal: true

module TTFunk
  class Aggregate
    private

    def coerce(other)
      if other.respond_to?(:value_or)
        other.value_or(0)
      else
        other
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ttfunk-1.7.0 lib/ttfunk/aggregate.rb
ttfunk-1.6.2.1 lib/ttfunk/aggregate.rb
ttfunk-1.6.2 lib/ttfunk/aggregate.rb
ttfunk-1.6.1 lib/ttfunk/aggregate.rb
ttfunk-1.6.0 lib/ttfunk/aggregate.rb