Sha256: 72e9525e08b56c946eadf232fdb7b53231cc614db6a179efb11d7fe2f8c11c0d

Contents?: true

Size: 257 Bytes

Versions: 8

Compression:

Stored size: 257 Bytes

Contents

module NightcrawlerSwift
  module Ext
    module OpenStruct

      unless ::OpenStruct.new.respond_to?(:to_h)
        def to_h
          @table.dup || {}
        end
      end

    end
  end
end

OpenStruct.send :include, NightcrawlerSwift::Ext::OpenStruct

Version data entries

8 entries across 8 versions & 1 rubygems

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