Sha256: 590ba09b3621eb18ec982493c88487570479e2c61e787b4c482fa55c781262ce

Contents?: true

Size: 451 Bytes

Versions: 15

Compression:

Stored size: 451 Bytes

Contents

require_relative '../shared/nested'

module MoreCoreExtensions
  module HashNested
    include MoreCoreExtensions::Shared::Nested
    extend  MoreCoreExtensions::Shared::Nested

    #
    # Deletes all paths where the value is blank
    #
    def delete_blank_paths
      self.each_value { |v| v.delete_blank_paths if v.respond_to?(:delete_blank_paths) }
      self.delete_blanks
    end
  end
end

Hash.send(:include, MoreCoreExtensions::HashNested)

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
more_core_extensions-4.5.0 lib/more_core_extensions/core_ext/hash/nested.rb
more_core_extensions-4.4.0 lib/more_core_extensions/core_ext/hash/nested.rb
more_core_extensions-4.3.1 lib/more_core_extensions/core_ext/hash/nested.rb
more_core_extensions-4.3.0 lib/more_core_extensions/core_ext/hash/nested.rb
more_core_extensions-4.2.0 lib/more_core_extensions/core_ext/hash/nested.rb
more_core_extensions-4.1.0 lib/more_core_extensions/core_ext/hash/nested.rb
more_core_extensions-4.0.0 lib/more_core_extensions/core_ext/hash/nested.rb
more_core_extensions-3.8.0 lib/more_core_extensions/core_ext/hash/nested.rb
more_core_extensions-3.7.0 lib/more_core_extensions/core_ext/hash/nested.rb
more_core_extensions-3.6.0 lib/more_core_extensions/core_ext/hash/nested.rb
more_core_extensions-3.5.0 lib/more_core_extensions/core_ext/hash/nested.rb
more_core_extensions-3.4.0 lib/more_core_extensions/core_ext/hash/nested.rb
more_core_extensions-3.3.0 lib/more_core_extensions/core_ext/hash/nested.rb
more_core_extensions-3.2.0 lib/more_core_extensions/core_ext/hash/nested.rb
more_core_extensions-3.1.1 lib/more_core_extensions/core_ext/hash/nested.rb