Sha256: 1742f015e0dbf4b1f0a621e96e8c7841c16b7fecb8103909349858cefd11062e

Contents?: true

Size: 177 Bytes

Versions: 5

Compression:

Stored size: 177 Bytes

Contents

module MultiMime
  class NullType
    def nil?
      true
    end

    private

    def method_missing(method, *args)
      false if method.to_s[-1, 1] == '?'
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
multi_mime-1.1.0 lib/multi_mime/null_type.rb
multi_mime-1.0.1 lib/multi_mime/null_type.rb
multi_mime-1.0 lib/multi_mime/null_type.rb
multi_mime-0.0.4 lib/multi_mime/null_type.rb
multi_mime-0.0.3 lib/multi_mime/null_type.rb