Sha256: fe3b4f46bf41e76586e8c3af3825336ebb22ed233a2ef472f128c3bdf628671a

Contents?: true

Size: 360 Bytes

Versions: 24

Compression:

Stored size: 360 Bytes

Contents

# frozen_string_literal: true

class Code
  class Object
    class Nothing < ::Code::Object
      attr_reader :raw

      def initialize
        @raw = nil
      end

      def self.name
        "Nothing"
      end

      def inspect
        "nothing"
      end

      def to_s
        ""
      end

      def truthy?
        false
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
code-ruby-0.9.0 lib/code/object/nothing.rb
code-ruby-0.8.5 lib/code/object/nothing.rb
code-ruby-0.8.4 lib/code/object/nothing.rb
code-ruby-0.8.3 lib/code/object/nothing.rb
code-ruby-0.8.2 lib/code/object/nothing.rb
code-ruby-0.8.1 lib/code/object/nothing.rb
code-ruby-0.8.0 lib/code/object/nothing.rb
code-ruby-0.7.8 lib/code/object/nothing.rb
code-ruby-0.7.7 lib/code/object/nothing.rb
code-ruby-0.7.6 lib/code/object/nothing.rb
code-ruby-0.7.5 lib/code/object/nothing.rb
code-ruby-0.7.4 lib/code/object/nothing.rb
code-ruby-0.7.3 lib/code/object/nothing.rb
code-ruby-0.7.2 lib/code/object/nothing.rb
code-ruby-0.7.1 lib/code/object/nothing.rb
code-ruby-0.7.0 lib/code/object/nothing.rb
code-ruby-0.6.7 lib/code/object/nothing.rb
code-ruby-0.6.6 lib/code/object/nothing.rb
code-ruby-0.6.5 lib/code/object/nothing.rb
code-ruby-0.6.4 lib/code/object/nothing.rb