Sha256: baad5ea1a31b58aefdae30366800fe0124e087f0185ceb9fb07394089cab1ef9

Contents?: true

Size: 259 Bytes

Versions: 8

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

8 entries across 8 versions & 1 rubygems

Version Path
code-ruby-1.2.5 lib/code/object/nothing.rb
code-ruby-1.2.4 lib/code/object/nothing.rb
code-ruby-1.2.3 lib/code/object/nothing.rb
code-ruby-1.2.2 lib/code/object/nothing.rb
code-ruby-1.2.1 lib/code/object/nothing.rb
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