Sha256: 24fc2034025949189aa08b15a14993861d3db669f0fcf532b4521747152b0921
Contents?: true
Size: 384 Bytes
Versions: 1
Compression:
Stored size: 384 Bytes
Contents
# frozen_string_literal: true # Mixin for lib-specific Type functions module LedgerSync module Type module ValueMixin def valid_classes raise NotImplementedError end def valid_without_casting?(value:) return true if value.nil? return true if valid_classes.select { |e| value.is_a?(e) }.any? false end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ledger_sync-1.1.1 | lib/ledger_sync/type/value_mixin.rb |