Sha256: baad5ea1a31b58aefdae30366800fe0124e087f0185ceb9fb07394089cab1ef9

Contents?: true

Size: 259 Bytes

Versions: 3

Compression:

Stored size: 259 Bytes

Contents

# frozen_string_literal: true

class Code
  class Object
    class Nothing < Object
      def initialize(*_args, **_kargs, &)
        @raw = nil
      end

      def truthy?
        false
      end

      def nothing?
        true
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
code-ruby-1.1.3 lib/code/object/nothing.rb
code-ruby-1.1.1 lib/code/object/nothing.rb
code-ruby-1.1.0 lib/code/object/nothing.rb