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