Sha256: 926b004233da6d10bec6f39d2f865d492ba963e08495571f988e9f8c003e6e56

Contents?: true

Size: 224 Bytes

Versions: 8

Compression:

Stored size: 224 Bytes

Contents

module NightcrawlerSwift
  module Ext
    module NilClass

      unless nil.respond_to?(:to_h)
        def to_h
          {}
        end
      end

    end
  end
end

NilClass.send :include, NightcrawlerSwift::Ext::NilClass

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
nightcrawler_swift-1.0.0 lib/nightcrawler_swift/ext/nil_class.rb
nightcrawler_swift-0.11.1 lib/nightcrawler_swift/ext/nil_class.rb
nightcrawler_swift-0.11.0 lib/nightcrawler_swift/ext/nil_class.rb
nightcrawler_swift-0.10.0 lib/nightcrawler_swift/ext/nil_class.rb
nightcrawler_swift-0.9.0 lib/nightcrawler_swift/ext/nil_class.rb
nightcrawler_swift-0.8.1 lib/nightcrawler_swift/ext/nil_class.rb
nightcrawler_swift-0.8.0 lib/nightcrawler_swift/ext/nil_class.rb
nightcrawler_swift-0.7.0 lib/nightcrawler_swift/ext/nil_class.rb