Sha256: 17817c7521bd08d188265db3c61c030d9adce212ee275fdc1f766bb1a92bccdc

Contents?: true

Size: 253 Bytes

Versions: 11

Compression:

Stored size: 253 Bytes

Contents

module Cms
  module Extensions
    module Hash
      #Returns a copy of the hash without the keys passed as arguments
      def except(*args)
        reject {|k,v| args.include?(k) }
      end
    end
  end
end
Hash.send(:include, Cms::Extensions::Hash)

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
browsercms-artirix-4.0.4 lib/cms/extensions/hash.rb
browsercms-artirix-4.0.3.3 lib/cms/extensions/hash.rb
browsercms-artirix-4.0.3.2 lib/cms/extensions/hash.rb
browsercms-artirix-4.0.3.1 lib/cms/extensions/hash.rb
browsercms-artirix-4.0.3 lib/cms/extensions/hash.rb
browsercms-artirix-4.0.2 lib/cms/extensions/hash.rb
browsercms-artirix-4.0.1.1 lib/cms/extensions/hash.rb
browsercms-artirix-4.0.0.rc1.art4 lib/cms/extensions/hash.rb
browsercms-4.0.0.rc1 lib/cms/extensions/hash.rb
browsercms-4.0.0.beta lib/cms/extensions/hash.rb
browsercms-4.0.0.alpha lib/cms/extensions/hash.rb