Sha256: a1b7ae38405aeb7274e9227a15a8fa7b89c90b03dd9a791f7f989e5159c72f75

Contents?: true

Size: 167 Bytes

Versions: 14

Compression:

Stored size: 167 Bytes

Contents

class Hash
  
  def paramflat
    result = {}

    self.each do |key, val|
      result[key] = (defined? val.value) ? val.value : nil
    end

    result
  end
  
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
puppet-doc-lint-0.3.0 lib/puppet-doc-lint/hash.rb
puppet-parse-0.1.3 lib/puppet-parse/hash.rb
puppet-parse-0.1.2 lib/puppet-parse/hash.rb
puppet-doc-lint-0.2.0 lib/puppet-doc-lint/hash.rb
puppet-parse-0.1.1 lib/puppet-parse/hash.rb
puppet-doc-lint-0.1.1 lib/puppet-doc-lint/hash.rb
puppet-doc-lint-0.1.0 lib/puppet-doc-lint/hash.rb
puppet-doc-lint-0.0.1 lib/puppet-doc-lint/hash.rb
puppet-parse-0.1.0 lib/puppet-parse/hash.rb
puppet-parse-0.0.6 lib/puppet-parse/hash.rb
puppet-parse-0.0.5 lib/puppet-parse/hash.rb
puppet-parse-0.0.4 lib/puppet-parse/hash.rb
puppet-parse-0.0.2 lib/puppet-parse/hash.rb
puppet-parse-0.0.1 lib/puppet-parse/hash.rb