Sha256: 968746a0e4c7cb63c72485f735fc67a66a2627b66331670527871b8187095c35
Contents?: true
Size: 327 Bytes
Versions: 37
Compression:
Stored size: 327 Bytes
Contents
# frozen_string_literal: true module EacRailsBase0 class BooleanValue def self.to_b(object) return false if object.blank? if object.is_a?(String) object = object.strip object.present? && object != '0' && object != 'false' else object ? true : false end end end end
Version data entries
37 entries across 37 versions & 1 rubygems