Sha256: e83bda37e7b13fc30a41faa422644f80e3c51d37774564d60f79d396c3c9545b

Contents?: true

Size: 143 Bytes

Versions: 5

Compression:

Stored size: 143 Bytes

Contents

module Monolens
  module Type
    class Emptyable
      def self.===(instance)
        instance.respond_to?(:empty)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
monolens-0.6.4 lib/monolens/type/emptyable.rb
monolens-0.6.3 lib/monolens/type/emptyable.rb
monolens-0.6.2 lib/monolens/type/emptyable.rb
monolens-0.6.1 lib/monolens/type/emptyable.rb
monolens-0.6.0 lib/monolens/type/emptyable.rb