Sha256: 6fb8c7d509d694c052c1faf02248bc76861e001118cf3dee57abec80bc7e4a61

Contents?: true

Size: 151 Bytes

Versions: 28

Compression:

Stored size: 151 Bytes

Contents

# copyright: 2016, Chef Software Inc.

class Struct
  unless instance_methods.include? :to_h
    def to_h
      Hash[each_pair.to_a]
    end
  end
end

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
inspec-core-4.17.17 lib/inspec/polyfill.rb
inspec-4.17.17 lib/inspec/polyfill.rb
inspec-core-4.17.15 lib/inspec/polyfill.rb
inspec-4.17.15 lib/inspec/polyfill.rb
inspec-core-4.17.14 lib/inspec/polyfill.rb
inspec-4.17.14 lib/inspec/polyfill.rb
inspec-core-4.17.11 lib/inspec/polyfill.rb
inspec-4.17.11 lib/inspec/polyfill.rb
inspec-core-4.17.7 lib/inspec/polyfill.rb
inspec-4.17.7 lib/inspec/polyfill.rb
inspec-core-4.16.0 lib/inspec/polyfill.rb
inspec-4.16.0 lib/inspec/polyfill.rb
inspec-core-4.12.0 lib/inspec/polyfill.rb
inspec-4.12.0 lib/inspec/polyfill.rb
inspec-core-4.10.4 lib/inspec/polyfill.rb
inspec-4.10.4 lib/inspec/polyfill.rb
inspec-core-4.7.24 lib/inspec/polyfill.rb
inspec-4.7.24 lib/inspec/polyfill.rb
inspec-core-4.7.18 lib/inspec/polyfill.rb
inspec-4.7.18 lib/inspec/polyfill.rb