Sha256: 7fb7ef92e55269a29ce4092843f8c6d8f11cd90f69b3a1b6543d70b71fcaff6f
Contents?: true
Size: 497 Bytes
Versions: 4
Compression:
Stored size: 497 Bytes
Contents
# frozen_string_literal: true module Kind Undefined = Object.new.tap do |undefined| def undefined.inspect @inspect ||= 'Kind::Undefined'.freeze end def undefined.to_s inspect end def undefined.clone self end def undefined.dup clone end def undefined.default(value, default) return value if self != value default.respond_to?(:call) ? default.call : default end undefined.inspect undefined.freeze end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
kind-5.1.0 | lib/kind/core/undefined.rb |
kind-5.0.0 | lib/kind/undefined.rb |
kind-4.1.0 | lib/kind/undefined.rb |
kind-4.0.0 | lib/kind/undefined.rb |