Sha256: 01bf051bfbc84b26712d4dcfae5653bd45476248b1f07279590a4cf6f4505439
Contents?: true
Size: 362 Bytes
Versions: 20
Compression:
Stored size: 362 Bytes
Contents
# frozen_string_literal: true module PaidUp # Unlimited class: designed to output as 'Unlimited' for string, -1 for db, # or 999999999 for number. module Unlimited def self.initialize 999_999_999 end def self.to_i(format = :default) format == :db ? -1 : 999_999_999 end def self.to_s :unlimited.l end end end
Version data entries
20 entries across 20 versions & 1 rubygems