Sha256: 20f5d21142448e5d0d02668aa166e085b3390d463855eec103693c8d76b4d18b

Contents?: true

Size: 325 Bytes

Versions: 1

Compression:

Stored size: 325 Bytes

Contents

class Code
  class Object
    class Nothing < ::Code::Object
      def to_s
        ""
      end

      def inspect
        "nothing"
      end

      def ==(other)
        other.is_a?(::Code::Object::Nothing)
      end
      alias_method :eql?, :==

      def hash
        [self.class, nil].hash
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
template-ruby-0.1.0 lib/code/object/nothing.rb